Changeset 5228 in subversion
- Timestamp:
- Sep 16, 2011 3:08:07 PM (20 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/steps/mail/check_recent.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5226 r5228 2 2 =========================== 3 3 4 - Trigger 'new_messages' hook for all checked folders (#1488083) 4 5 - Fix session race conditions when composing new messages 5 6 - Fix encoding of LDAP contacts identifiers (#1488079) -
trunk/roundcubemail/program/steps/mail/check_recent.inc
r4872 r5228 35 35 // check recent/unseen counts 36 36 foreach ($a_mailboxes as $mbox_name) { 37 if ($mbox_name == $current && ($status = $IMAP->mailbox_status($mbox_name))) {37 $status = $IMAP->mailbox_status($mbox_name); 38 38 39 rcmail_send_unread_count($mbox_name, true); 39 if ($status & 1) { 40 // trigger plugin hook 41 $RCMAIL->plugins->exec_hook('new_messages', array('mailbox' => $mbox_name)); 42 } 40 43 44 rcmail_send_unread_count($mbox_name, true); 45 46 if ($status && $mbox_name == $current) { 41 47 // refresh saved search set 42 48 $search_request = get_input_value('_search', RCUBE_INPUT_GPC); … … 71 77 $OUTPUT->set_env('current_page', $all_count ? $IMAP->list_page : 1); 72 78 73 if ($status & 1) {74 // trigger plugin hook75 $RCMAIL->plugins->exec_hook('new_messages', array('mailbox' => $mbox_name));76 }77 78 79 // remove old rows (and clear selection if new list is empty) 79 80 $OUTPUT->command('message_list.clear', $all_count ? false : true); … … 87 88 } 88 89 } 89 else {90 rcmail_send_unread_count($mbox_name, true);91 }92 90 } 93 91
Note: See TracChangeset
for help on using the changeset viewer.
