summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfourat.zouari <fourat.zouari@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-03-23 17:22:36 +0000
committerfourat.zouari <fourat.zouari@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-03-23 17:22:36 +0000
commit82866407277315c4192b089c59d0a484d7fce1a3 (patch)
tree2faa6b2da98190dc862eeebe1bd00094cc0419c2
parent8f3bd3a35937b7544fa842263c8be7037ffc6851 (diff)
Fixing cache clearing bug.
close #1484295 git-svn-id: https://svn.roundcube.net/trunk@517 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcube_imap.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc
index 871b6c1f4..438922b0a 100644
--- a/roundcubemail/program/include/rcube_imap.inc
+++ b/roundcubemail/program/include/rcube_imap.inc
@@ -580,8 +580,9 @@ class rcube_imap
$a_msg_headers = array();
$deleted_count = $this->_fetch_headers($mailbox, $msgs, $a_msg_headers, $cache_key);
- // delete cached messages with a higher index than $max
- $this->clear_message_cache($cache_key, $max);
+ // delete cached messages with a higher index than $max+1
+ // Changed $max to $max+1 to fix this bug : #1484295
+ $this->clear_message_cache($cache_key, $max + 1);
// kick child process to sync cache