Ignore:
Timestamp:
Feb 7, 2012 4:30:41 AM (17 months ago)
Author:
alec
Message:
  • Workaround IMAP server issue when THREAD command returns less messages than exist in a folder: don't update folder status in second count() call
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/check_recent.inc

    r5787 r5858  
    7373 
    7474        // get overall message count; allow caching because rcube_storage::folder_status() did a refresh 
    75         $all_count = $RCMAIL->storage->count(null, $RCMAIL->storage->get_threading() ? 'THREADS' : 'ALL'); 
    76  
     75        $list_mode = $RCMAIL->storage->get_threading() ? 'THREADS' : 'ALL'; 
     76        $all_count = $RCMAIL->storage->count(null, $list_mode, false, false); 
    7777        $page      = $RCMAIL->storage->get_page(); 
    7878        $page_size = $RCMAIL->storage->get_pagesize(); 
Note: See TracChangeset for help on using the changeset viewer.