diff options
author | thomascube <thomas@roundcube.net> | 2006-01-25 22:56:53 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-01-25 22:56:53 +0000 |
commit | 5e35126796f14e0910a007972779d96fd49e1789 (patch) | |
tree | 9d04098a0470504edbf12692247ba58545f1695e /program/steps/mail/check_recent.inc | |
parent | c9d09bbe43f268c11cadc9846652ff33521edf6c (diff) |
Added folder purge function and some checks
Diffstat (limited to 'program/steps/mail/check_recent.inc')
-rw-r--r-- | program/steps/mail/check_recent.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index fbf8871f9..3d0ceb2a9 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -22,10 +22,10 @@ $REMOTE_REQUEST = TRUE; $mbox = $IMAP->get_mailbox_name(); -if ($recent_count = $IMAP->messagecount(NULL, 'RECENT')) +if ($recent_count = $IMAP->messagecount(NULL, 'RECENT', TRUE)) { $count = $IMAP->messagecount(); - $unread_count = $IMAP->messagecount(NULL, 'UNSEEN'); + $unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE); $commands = sprintf("this.set_unread_count('%s', %d, true);\n", addslashes($mbox), $unread_count); $commands .= sprintf("this.set_env('messagecount', %d);\n", $count); |