[Vtigercrm-commits] [vtiger-commits] r10236 - in /vtigercrm/branches/5.0.3/modules/Webmails: CallRelatedList.php DetailView.php ListView.php MailParse.php Save.php WebmailsAjax.php body.php dlAttachments.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Feb 22 10:10:21 EST 2007
Author: saraj
Date: Thu Feb 22 08:10:08 2007
New Revision: 10236
Log:
Webmail class and filename changed to Webmails
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php
vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php
vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php
vtigercrm/branches/5.0.3/modules/Webmails/Save.php
vtigercrm/branches/5.0.3/modules/Webmails/WebmailsAjax.php
vtigercrm/branches/5.0.3/modules/Webmails/body.php
vtigercrm/branches/5.0.3/modules/Webmails/dlAttachments.php
Modified: vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php Thu Feb 22 08:10:08 2007
@@ -18,7 +18,7 @@
require_once('include/upload_file.php');
require_once('include/database/PearDatabase.php');
require_once('include/utils/utils.php');
-require_once('modules/Webmails/Webmail.php');
+require_once('modules/Webmails/Webmails.php');
require_once('modules/Webmails/MailParse.php');
global $log;
@@ -40,7 +40,7 @@
$mbox = getImapMbox($mailbox,$temprow);
-$email = new Webmail($mbox, $mailid);
+$email = new Webmails($mbox, $mailid);
$from = $email->from;
$subject=$email->subject;
$date=$email->date;
Modified: vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php Thu Feb 22 08:10:08 2007
@@ -9,7 +9,7 @@
*
********************************************************************************/
require_once('include/utils/UserInfoUtil.php');
-require_once("modules/Webmails/Webmail.php");
+require_once("modules/Webmails/Webmails.php");
require_once("modules/Webmails/MailBox.php");
global $app_strings;
@@ -21,7 +21,7 @@
global $MailBox;
$MailBox = new MailBox($mailbox);
-$webmail = new Webmail($MailBox->mbox,$mailid);
+$webmail = new Webmails($MailBox->mbox,$mailid);
$elist = $MailBox->mailList["overview"][($mailid-1)];
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0" class="previewWindow"><tr>';
Modified: vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/ListView.php Thu Feb 22 08:10:08 2007
@@ -22,7 +22,7 @@
require_once('include/utils/utils.php');
require_once('include/utils/UserInfoUtil.php');
require_once("modules/Webmails/MailBox.php");
-require_once("modules/Webmails/Webmail.php");
+require_once("modules/Webmails/Webmails.php");
require_once("modules/Webmails/MailParse.php");
$MailBox = new MailBox($mailbox);
@@ -115,7 +115,7 @@
$ret .= '"date":"'.substr($data[$i]->date,0,30).'",';
$ret .= '"from":"'.substr($data[$i]->from,0,20).'",';
$ret .= '"to":"'.$data[$i]->to.'",';
- $email = new Webmail($MailBox->mbox,$data[$i]->msgno);
+ $email = new Webmails($MailBox->mbox,$data[$i]->msgno);
if($email->has_attachments)
$ret .= '"attachments":"1"}';
else
Modified: vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php Thu Feb 22 08:10:08 2007
@@ -16,7 +16,7 @@
global $MailBox,$displayed_msgs,$show_hidden,$new_msgs;
$num = $mails[$start_message]->msgno;
- $msg_ob = new Webmail($MailBox->mbox,$mails[$start_message]->msgno);
+ $msg_ob = new Webmails($MailBox->mbox,$mails[$start_message]->msgno);
// TODO: scan the current db vtiger_tables to find a
// matching email address that will make a good
Modified: vtigercrm/branches/5.0.3/modules/Webmails/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/Save.php Thu Feb 22 08:10:08 2007
@@ -10,7 +10,7 @@
********************************************************************************/
require_once('modules/Emails/Emails.php');
-require_once('modules/Webmails/Webmail.php');
+require_once('modules/Webmails/Webmails.php');
require_once('include/logging.php');
require_once('include/database/PearDatabase.php');
require_once('include/utils/UserInfoUtil.php');
@@ -30,7 +30,7 @@
if($_REQUEST["mailbox"] && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
$MailBox = new MailBox($mailbox);
-$email = new Webmail($MailBox->mbox, $_REQUEST["mailid"]);
+$email = new Webmails($MailBox->mbox, $_REQUEST["mailid"]);
$subject = $email->subject;
$date = $email->date;
Modified: vtigercrm/branches/5.0.3/modules/Webmails/WebmailsAjax.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/WebmailsAjax.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/WebmailsAjax.php Thu Feb 22 08:10:08 2007
@@ -13,7 +13,7 @@
require_once('include/utils/utils.php');
require_once('include/utils/UserInfoUtil.php');
require_once('modules/Webmails/MailBox.php');
-require_once('modules/Webmails/Webmail.php');
+require_once('modules/Webmails/Webmails.php');
global $adb,$current_user;
@@ -50,7 +50,7 @@
if($command == "delete_msg") {
$adb->println("DELETE SINGLE WEBMAIL MESSAGE $mailid");
$MailBox = new MailBox($mailbox);
- $email = new Webmail($MailBox->mbox,$mailid);
+ $email = new Webmails($MailBox->mbox,$mailid);
$email->delete();
imap_close($MailBox->mbox);
echo $mailid;
@@ -62,7 +62,7 @@
$tlist = explode(":",$mailid);
foreach($tlist as $id) {
$adb->println("DELETE MULTI MESSAGE $id");
- $email = new Webmail($MailBox->mbox,$id);
+ $email = new Webmails($MailBox->mbox,$id);
$email->delete();
}
imap_close($MailBox->mbox);
@@ -72,7 +72,7 @@
}
if($command == "undelete_msg") {
$MailBox = new MailBox($mailbox);
- $email = new Webmail($MailBox->mbox,$mailid);
+ $email = new Webmails($MailBox->mbox,$mailid);
$email->unDeleteMsg();
imap_close($MailBox->mbox);
echo $mailid;
@@ -81,7 +81,7 @@
}
if($command == "set_flag") {
$MailBox = new MailBox($mailbox);
- $email = new Webmail($MailBox->mbox,$mailid);
+ $email = new Webmails($MailBox->mbox,$mailid);
$email->setFlag();
imap_close($MailBox->mbox);
flush();
@@ -89,7 +89,7 @@
}
if($command == "clear_flag") {
$MailBox = new MailBox($mailbox);
- $email = new Webmail($MailBox->mbox,$mailid);
+ $email = new Webmails($MailBox->mbox,$mailid);
$email->delFlag();
imap_close($MailBox->mbox);
flush();
Modified: vtigercrm/branches/5.0.3/modules/Webmails/body.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/body.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/body.php Thu Feb 22 08:10:08 2007
@@ -12,14 +12,14 @@
global $current_user;
require_once('include/utils/utils.php');
require_once('include/utils/UserInfoUtil.php');
-require_once('modules/Webmails/Webmail.php');
+require_once('modules/Webmails/Webmails.php');
require_once('modules/Webmails/MailBox.php');
if(!isset($_SESSION["authenticated_user_id"]) || $_SESSION["authenticated_user_id"] != $current_user->id) {echo "ajax failed";flush();exit();}
$mailid=$_REQUEST["mailid"];
if(isset($_REQUEST["mailbox"]) && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
$MailBox = new MailBox($mailbox);
-$email = new Webmail($MailBox->mbox,$mailid);
+$email = new Webmails($MailBox->mbox,$mailid);
?>
<script type="text/javascript">
Modified: vtigercrm/branches/5.0.3/modules/Webmails/dlAttachments.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/dlAttachments.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/dlAttachments.php Thu Feb 22 08:10:08 2007
@@ -13,7 +13,7 @@
include('config.php');
require_once('include/utils/UserInfoUtil.php');
require_once('include/utils/utils.php');
-require_once('modules/Webmails/Webmail.php');
+require_once('modules/Webmails/Webmails.php');
require_once('modules/Webmails/MailBox.php');
global $MailBox;
@@ -22,7 +22,7 @@
$mailid=$_REQUEST["mailid"];
$num=$_REQUEST["num"];
-$email = new Webmail($MailBox->mbox,$mailid);
+$email = new Webmails($MailBox->mbox,$mailid);
$attachments=$email->downloadAttachments();
$inline=$email->downloadInlineAttachments();
More information about the vtigercrm-commits
mailing list