diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2009-03-21 01:35:17 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2009-03-21 01:35:17 +0000 |
| commit | efdff416f9d24da9d5aa7709c5c34d7dc72c5aa4 (patch) | |
| tree | d0d5db71e47c3a55b44490522d25ecd3d667331c /roundcubemail/program | |
| parent | cbc33bdcd5dd09e69004ad93afedf3b3c25ec5b3 (diff) | |
Reverted back to value of $max prior to commit cbc33bd, and implemented a similar fix per Chris January sent on Tuesday, March 17 in the <<Threaded message listing implementation>> thread.
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index a05dcf1aa..e5abe8a5f 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -587,7 +587,7 @@ class rcube_imap $message_threading = $this->get_capability('thread=references') && rcmail::get_instance()->imap->threading; - $max = $this->_messagecount($mailbox, 'ALL'); + $max = $this->_messagecount($mailbox, rcmail::get_instance()->config->get('imap_thread_algorithm'), 'ALL'); list($begin, $end) = $this->_get_message_range($max, $page); @@ -696,6 +696,8 @@ class rcube_imap $deleted_count = $this->_fetch_headers($mailbox, $msgs, $a_msg_headers, $cache_key); // delete cached messages with a higher index than $max+1 // Changed $max to $max+1 to fix this bug : #1484295 + if ($message_threading) + $max = $this->_messagecount($mailbox, 'ALL'); $this->clear_message_cache($cache_key, $max + 1); } |
