summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/list.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-11-25 20:40:10 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-11-25 20:40:10 +0000
commit94cf2f11feeb8448995f83967f032768dd7c05df (patch)
treeba9d5bcd5cb19b3c64bec3b4172afe3a708db3cc /roundcubemail/program/steps/mail/list.inc
parent902ec1456d958887bdc7ee4e1b5877a3c72db5b7 (diff)
Only show new messages if they match the current search (#1484176)
git-svn-id: https://svn.roundcube.net/trunk@932 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/list.inc')
-rw-r--r--roundcubemail/program/steps/mail/list.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc
index 196144285..8caf4c06f 100644
--- a/roundcubemail/program/steps/mail/list.inc
+++ b/roundcubemail/program/steps/mail/list.inc
@@ -40,9 +40,10 @@ else
$mbox_name = $IMAP->get_mailbox_name();
// fetch message headers
-if ($count = $IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh'])))
+if ($IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh'])))
$a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order);
+$count = $IMAP->messagecount($mbox_name);
$unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh']));
// update message count display