summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-10-08 18:18:04 +0000
committeralecpl <alec@alec.pl>2009-10-08 18:18:04 +0000
commit170b72ab78c4fd0275fb55d62099ce7e99ff4028 (patch)
tree1c8a616bbf7540ebbb25e7d50b012d8e23835392 /program
parente7cdf70c9dffe3c07c204572f96dd554762e255d (diff)
- fix for skip_deleted
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index d1021fd98..9ca1167ee 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -602,7 +602,8 @@ class rcube_imap
if ($this->index_sort && $this->sort_field == 'date')
{
if ($this->skip_deleted) {
- $msg_index = $this->_search_index($mailbox, 'ALL');
+ // @TODO: this could be cached
+ $msg_index = $this->_search_index($mailbox, 'ALL UNDELETED');
$max = max($msg_index);
list($begin, $end) = $this->_get_message_range(count($msg_index), $page);
$msg_index = array_slice($msg_index, $begin, $end-$begin);