diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-05-18 12:35:28 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-05-18 12:35:28 +0000 |
| commit | 69c1c6c417df6157811e37bd40e5cb4a044b802d (patch) | |
| tree | d40d680816ad77bcd05dd213fc9b3ae1aa4524a0 /roundcubemail/program/steps/mail/list.inc | |
| parent | 32ab9a66704ad121283037fd32f9fd503b682925 (diff) | |
Better refresh of message list; improved HTML mail display
git-svn-id: https://svn.roundcube.net/trunk@575 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/list.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/list.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc index a246254d1..6c727068d 100644 --- a/roundcubemail/program/steps/mail/list.inc +++ b/roundcubemail/program/steps/mail/list.inc @@ -37,12 +37,13 @@ else $sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order']; } +$mbox_name = $IMAP->get_mailbox_name(); // fetch message headers -if ($count = $IMAP->messagecount()) +if ($count = $IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh']))) $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); -$unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh']) ? TRUE : FALSE); +$unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh'])); // update message count display $pages = ceil($count/$IMAP->page_size); @@ -51,7 +52,7 @@ $OUTPUT->set_env('pagecount', $pages); $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count)); // update mailboxlist -$OUTPUT->command('set_unread_count', $IMAP->get_mailbox_name(), $unseen); +$OUTPUT->command('set_unread_count', $mbox_name, $unseen); // add message rows |
