From e327ca25efcb9ace2f43a38ac81d44856221f0a0 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 23 Apr 2012 09:03:54 +0000 Subject: - Fix listing messages when: skip_deleted=true, ESEARCH supported, threads disabled --- program/include/rcube_imap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 8b45da1f2..24043c53b 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1213,7 +1213,9 @@ class rcube_imap extends rcube_storage } // use message index sort as default sorting else if (!$sort_field) { + // use search result from count() if possible if ($this->options['skip_deleted'] && !empty($this->icache['undeleted_idx']) + && $this->icache['undeleted_idx']->get_parameters('ALL') !== null && $this->icache['undeleted_idx']->get_parameters('MAILBOX') == $folder ) { $index = $this->icache['undeleted_idx']; -- cgit v1.2.3