[Vtigercrm-commits] [vtiger-commits] r10467 - /vtigercrm/branches/5.0.3/modules/Webmails/WebmailsAjax.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Mar 17 07:19:00 EDT 2007
Author: richie
Date: Sat Mar 17 05:18:09 2007
New Revision: 10467
Log:
fixes #3216
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/WebmailsAjax.php
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 Sat Mar 17 05:18:09 2007
@@ -50,6 +50,7 @@
if($command == "delete_msg") {
$adb->println("DELETE SINGLE WEBMAIL MESSAGE $mailid");
$MailBox = new MailBox($mailbox);
+ imap_mail_move($MailBox->mbox,$mailid,"Trash");
$email = new Webmails($MailBox->mbox,$mailid);
$email->delete();
imap_close($MailBox->mbox);
@@ -61,9 +62,10 @@
$MailBox = new MailBox($mailbox);
$tlist = explode(":",$mailid);
foreach($tlist as $id) {
+ imap_mail_move($MailBox->mbox,$id,"Trash");
$adb->println("DELETE MULTI MESSAGE $id");
$email = new Webmails($MailBox->mbox,$id);
- $email->delete();
+ $email->delete();
}
imap_close($MailBox->mbox);
echo $mailid;
More information about the vtigercrm-commits
mailing list