summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-08-02 22:05:42 +0000
committerthomascube <thomas@roundcube.net>2006-08-02 22:05:42 +0000
commitc4e7e4f8221f7eb229c1186729424e9ce6ccee16 (patch)
tree65312a4dbe776b851e5f6b570807815563b41901 /program/steps
parent06417b8491dfcc83cc506fb035ec026edddf95d0 (diff)
Message sorting: added patch by Eric; fixed check-for-recent confusion
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/check_recent.inc6
1 files changed, 5 insertions, 1 deletions
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);
}