Changeset 3936 in subversion
- Timestamp:
- Sep 3, 2010 7:46:06 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/check_recent.inc
r3780 r3936 22 22 $current = $IMAP->get_mailbox_name(); 23 23 $check_all = !empty($_GET['_refresh']) || (bool)$RCMAIL->config->get('check_all_folders'); 24 $a_mailboxes = $check_all ? $IMAP->list_mailboxes() : (array)$current;25 24 26 // check recent/unseen counts for all mailboxes 25 // list of folders to check 26 if ($check_all) { 27 $a_mailboxes = $IMAP->list_mailboxes(); 28 } 29 else { 30 $a_mailboxes = (array) $current; 31 if ($a_mailboxes[0] != 'INBOX') 32 $a_mailboxes[] = 'INBOX'; 33 } 34 35 // check recent/unseen counts 27 36 foreach ($a_mailboxes as $mbox_name) { 28 37 if ($mbox_name == $current && ($status = $IMAP->mailbox_status($mbox_name))) { … … 84 93 85 94 $OUTPUT->send(); 86 87
Note: See TracChangeset
for help on using the changeset viewer.
