summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-08 18:18:04 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-08 18:18:04 +0000
commit1107678b590297752fe47a8566f4fdad7f35d148 (patch)
tree8ebce85bce8f7d899ed7706a39db1ebb744ddb42
parent8fd49350d9d3ce04bf2ed3790e94960969f4c494 (diff)
- fix for skip_deleted
git-svn-id: https://svn.roundcube.net/trunk@3027 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcube_imap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index d1021fd98..9ca1167ee 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/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);