switch notification on inbox off (which was the default fallback, when nothing is configured)

This commit is contained in:
Klaus Leithoff 2014-02-06 10:31:21 +00:00
parent 84586b196b
commit 0389960e32

View File

@ -769,7 +769,7 @@ class mail_hooks
$prefs = new preferences($recipient->account_id);
$preferences = $prefs->read();
// TODO: no possibility to set that at this time; always use INBOX
if (empty($preferences['mail']['notify_folders']))$preferences['mail']['notify_folders']='INBOX';
if (empty($preferences['mail']['notify_folders'])) return true;//$preferences['mail']['notify_folders']='INBOX';
//error_log(__METHOD__.__LINE__.array2string($preferences['mail']['notify_folders']));
if(!isset($preferences['mail']['notify_folders'])||empty($preferences['mail']['notify_folders'])||$preferences['mail']['notify_folders']=='none') {
return true; //no pref set for notifying - exit