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);