summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-07 09:30:41 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-07 09:30:41 +0000
commitd2669456ebea1697be1c0be2e0e6d67385f03c53 (patch)
tree23b7a98004b407267d6af3905e394679adb3bfd9 /roundcubemail/program
parent91d419d68a0583db2fbcb2a170fd2e162b59ad3b (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
git-svn-id: https://svn.roundcube.net/trunk@5858 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/check_recent.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/check_recent.inc b/roundcubemail/program/steps/mail/check_recent.inc
index 4f97d0fe7..d442216c6 100644
--- a/roundcubemail/program/steps/mail/check_recent.inc
+++ b/roundcubemail/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();