Changeset 2959 in subversion for trunk/roundcubemail/program/steps/mail/list.inc
- Timestamp:
- Sep 17, 2009 8:07:58 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/list.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/list.inc
r2634 r2959 61 61 $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); 62 62 63 // count UNSEEN messages... 64 $old_unseen = $_SESSION['unseen_count'][$mbox_name]; 63 65 $unseen = $count ? $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh'])) : 0; 66 $_SESSION['unseen_count'][$mbox_name] = $unseen; 67 68 // ...and update mailboxlist 69 if ($unseen != $old_unseen) 70 $OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); 64 71 65 72 // update message count display … … 81 88 else 82 89 $OUTPUT->show_message('nomessagesfound', 'notice'); 83 84 // update mailboxlist85 $OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'));86 90 87 91 // send response
Note: See TracChangeset
for help on using the changeset viewer.
