diff options
author | alecpl <alec@alec.pl> | 2012-04-23 09:03:54 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-04-23 09:03:54 +0000 |
commit | e327ca25efcb9ace2f43a38ac81d44856221f0a0 (patch) | |
tree | 1b0aeed6ee31fcef35eb8a371bc9bb34c454c177 | |
parent | 7c722504c6f36997ba3e13cd55c079254dd8fb54 (diff) |
- Fix listing messages when: skip_deleted=true, ESEARCH supported, threads disabled
-rw-r--r-- | program/include/rcube_imap.php | 2 |
1 files changed, 2 insertions, 0 deletions
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']; |