summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-04-08 13:21:24 +0000
committerthomascube <thomas@roundcube.net>2007-04-08 13:21:24 +0000
commitd70ddea08caef202be16a3e399564d5080fc6b5c (patch)
tree2f0a645d706f6c37241bd62f3eb328ad5f90f78c
parent4379bb3d2d0bd4b0e54b00c3218ba15c0381dc68 (diff)
Fixed check for new messages (closes #1484310)
-rw-r--r--program/steps/mail/check_recent.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index 5846699e7..ca35725ea 100644
--- a/program/steps/mail/check_recent.inc
+++ b/program/steps/mail/check_recent.inc
@@ -29,12 +29,12 @@ foreach ($a_mailboxes as $mbox_name)
{
if ($recent_count = $IMAP->messagecount(NULL, 'RECENT', TRUE))
{
- $count = $IMAP->messagecount();
+ $count = $IMAP->messagecount(NULL, 'ALL', TRUE);
$unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE);
$commands .= sprintf("this.set_unread_count('%s', %d);\n", addslashes($mbox_name), $unread_count);
$commands .= sprintf("this.set_env('messagecount', %d);\n", $count);
- $commands .= sprintf("this.set_rowcount('%s');\n", rcmail_get_messagecount_text());
+ $commands .= sprintf("this.set_rowcount('%s');\n", rcmail_get_messagecount_text($count));
$commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota());
// add new message headers to list