summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-03-23 17:22:36 +0000
committersvncommit <devs@roundcube.net>2007-03-23 17:22:36 +0000
commitf388a8d37a0cd05df9f3fba4ec863d3818bb3d10 (patch)
tree6d23c6fd7c72f2f706beec73e8437192821e01c7 /program/include/rcube_imap.inc
parent5181405715533cb74378b34e57bc577a976bea2d (diff)
Fixing cache clearing bug.
close #1484295
Diffstat (limited to 'program/include/rcube_imap.inc')
-rw-r--r--program/include/rcube_imap.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index 871b6c1f4..438922b0a 100644
--- a/program/include/rcube_imap.inc
+++ b/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