From c4e7e4f8221f7eb229c1186729424e9ce6ccee16 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 2 Aug 2006 22:05:42 +0000 Subject: Message sorting: added patch by Eric; fixed check-for-recent confusion --- program/steps/mail/check_recent.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program/steps/mail') diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index f949eb232..5846699e7 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -40,7 +40,11 @@ foreach ($a_mailboxes as $mbox_name) // add new message headers to list $a_headers = array(); for ($i=$recent_count, $id=$count-$recent_count+1; $i>0; $i--, $id++) - $a_headers[] = $IMAP->get_headers($id, NULL, FALSE); + { + $header = $IMAP->get_headers($id, NULL, FALSE); + if ($header->recent) + $a_headers[] = $header; + } $commands .= rcmail_js_message_list($a_headers, TRUE); } -- cgit v1.2.3