From 4b0addd2da3d91c4b2cb1cf890c31b107d960854 Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 21 Oct 2011 16:26:40 +0000 Subject: - Fix threads cache validation when skip_deleted=true git-svn-id: https://svn.roundcube.net/trunk@5357 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap_cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_imap_cache.php b/roundcubemail/program/include/rcube_imap_cache.php index b51bc6db9..ee4e92542 100644 --- a/roundcubemail/program/include/rcube_imap_cache.php +++ b/roundcubemail/program/include/rcube_imap_cache.php @@ -853,7 +853,7 @@ class rcube_imap_cache // @TODO: find better validity check for threaded index if ($is_thread) { // check messages number... - if ($mbox_data['EXISTS'] != @max(array_keys($index['depth']))) { + if (!$this->skip_deleted && $mbox_data['EXISTS'] != @max(array_keys($index['depth']))) { return false; } return true; -- cgit v1.2.3