From 11074801923807a9448f7427299ddba76e235e42 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 25 Nov 2007 20:40:10 +0000 Subject: Only show new messages if they match the current search (#1484176) --- program/steps/mail/list.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/steps/mail/list.inc') diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc index 196144285..8caf4c06f 100644 --- a/program/steps/mail/list.inc +++ b/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 -- cgit v1.2.3