diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-16 19:01:10 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-16 19:01:10 +0100 |
commit | 6e8f2a7448d9bf5a87603b197816027f3dd4bb4c (patch) | |
tree | e254fde2637d7163da16d93954addaecc2cb6e40 /program/steps | |
parent | b6fa7d54b852df88de1fa1b36d6221b143e85835 (diff) |
Notify about a new mail only if it's UNSEEN (#1388965)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/check_recent.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index d3c14a38d..3649d148c 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -52,12 +52,12 @@ foreach ($a_mailboxes as $mbox_name) { } // Get mailbox status - $status = $RCMAIL->storage->folder_status($mbox_name); + $status = $RCMAIL->storage->folder_status($mbox_name, $diff); if ($status & 1) { // trigger plugin hook $RCMAIL->plugins->exec_hook('new_messages', - array('mailbox' => $mbox_name, 'is_current' => $is_current)); + array('mailbox' => $mbox_name, 'is_current' => $is_current, 'diff' => $diff)); } rcmail_send_unread_count($mbox_name, true, null, |