summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-02-07 09:30:41 +0000
committeralecpl <alec@alec.pl>2012-02-07 09:30:41 +0000
commitf3136149fe680d0d70ca30c78dda3dae41ff7198 (patch)
tree34e177e9c48cb9e34d3b37d9611607943fab0381 /program/steps/mail
parentccce87d7ce17588c8f851af102cc35aa3d399fd2 (diff)
- Workaround IMAP server issue when THREAD command returns less messages than exist in a folder: don't update folder status in second count() call
Diffstat (limited to 'program/steps/mail')
-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 4f97d0fe7..d442216c6 100644
--- a/program/steps/mail/check_recent.inc
+++ b/program/steps/mail/check_recent.inc
@@ -72,8 +72,8 @@ foreach ($a_mailboxes as $mbox_name) {
continue;
// get overall message count; allow caching because rcube_storage::folder_status() did a refresh
- $all_count = $RCMAIL->storage->count(null, $RCMAIL->storage->get_threading() ? 'THREADS' : 'ALL');
-
+ $list_mode = $RCMAIL->storage->get_threading() ? 'THREADS' : 'ALL';
+ $all_count = $RCMAIL->storage->count(null, $list_mode, false, false);
$page = $RCMAIL->storage->get_page();
$page_size = $RCMAIL->storage->get_pagesize();