summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/list.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-17 12:36:32 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-17 12:36:32 +0000
commit85da924261b7ada8cbbea2de22781b65af882205 (patch)
treee01ff10b285b9b20e9d13661331a4c4eabe495b1 /roundcubemail/program/steps/mail/list.inc
parentd7f648b11a0a0d93ddbd6fa37ce0c33d17976a19 (diff)
- some code improvements for r2959 change
git-svn-id: https://svn.roundcube.net/trunk@2960 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/list.inc')
-rw-r--r--roundcubemail/program/steps/mail/list.inc10
1 files changed, 2 insertions, 8 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc
index a40fce679..57bb91979 100644
--- a/roundcubemail/program/steps/mail/list.inc
+++ b/roundcubemail/program/steps/mail/list.inc
@@ -60,14 +60,8 @@ if ($_SESSION['search_filter'] && $_SESSION['search_filter'] != 'ALL')
if ($count = $IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh'])))
$a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order);
-// count UNSEEN messages...
-$old_unseen = $_SESSION['unseen_count'][$mbox_name];
-$unseen = $count ? $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh'])) : 0;
-$_SESSION['unseen_count'][$mbox_name] = $unseen;
-
-// ...and update mailboxlist
-if ($unseen != $old_unseen)
- $OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'));
+// update mailboxlist
+rcmail_send_unread_count($mbox_name, !empty($_REQUEST['_refresh']));
// update message count display
$pages = ceil($count/$IMAP->page_size);