diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-23 08:05:03 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-23 08:05:03 +0000 |
| commit | d6e4ba4f7eadc3fb86364d6f79cde67d05549e28 (patch) | |
| tree | f26cdff4927b5c2be3328cf7bb7af4ed398758dd /roundcubemail/program/include/rcube_imap.php | |
| parent | d9028f04b5df546064d6aa7292296fb85c3bc960 (diff) | |
- Fix UNSEEN counting when threads and skip_deleted are both enabled (#1486558)
git-svn-id: https://svn.roundcube.net/trunk@3399 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 44d23cc69..d0b29082b 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -490,7 +490,7 @@ class rcube_imap * Get message count for a specific mailbox * * @param string Mailbox/folder name - * @param string Mode for count [ALL|UNSEEN|RECENT] + * @param string Mode for count [ALL|THREADS|UNSEEN|RECENT] * @param boolean Force reading from server and update cache * @return int Number of messages * @access public @@ -550,7 +550,12 @@ class rcube_imap // get message count using SEARCH // not very performant but more precise (using UNDELETED) + // disable THREADS for this request + $threads = $this->threading; + $this->threading = false; $index = $this->_search_index($mailbox, $search_str); + $this->threading = $threads; + $count = is_array($index) ? count($index) : 0; if ($mode == 'ALL') |
