From 76af8cb13474c6d1156b6d84553a730282717f19 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 23 Aug 2011 12:02:13 +0000 Subject: [PATCH] * eMail: search for attachments in multipart/alternative (as it is used this way by clients now) to indicate attachments; switch back to DATE for sorting and display (instead of INTERNALDATE and ARRIVAL); using UNDELETED as standard filter instead of ALL on search; search for UNDELETED and UNSEEN on notifications and UNDELETED for eSync; --- notifications/inc/class.notifications_ajax.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/inc/class.notifications_ajax.inc.php b/notifications/inc/class.notifications_ajax.inc.php index 77599e9b75..7f30d3b62e 100644 --- a/notifications/inc/class.notifications_ajax.inc.php +++ b/notifications/inc/class.notifications_ajax.inc.php @@ -180,7 +180,7 @@ class notifications_ajax { $folder_status[$notify_folder] = $bofelamimail->getFolderStatus($notify_folder); $cutoffdate = time(); $cutoffdate = $cutoffdate - (60*60*24*14); // last 14 days - $_filter = array('status'=>'UNSEEN','type'=>"SINCE",'string'=> date("d-M-Y", $cutoffdate)); + $_filter = array('status'=>array('UNSEEN','UNDELETED'),'type'=>"SINCE",'string'=> date("d-M-Y", $cutoffdate)); //error_log(__METHOD__.__LINE__.' (user: '.$this->recipient->account_lid.') Mailbox:'.$notify_folder.' filter:'.array2string($_filter)); // $_folderName, $_startMessage, $_numberOfMessages, $_sort, $_reverse, $_filter, $_thisUIDOnly=null, $_cacheResult=true $headers = $bofelamimail->getHeaders($notify_folder, 1, 999, 0, true, $_filter,null,false);