From 1107678b590297752fe47a8566f4fdad7f35d148 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 8 Oct 2009 18:18:04 +0000 Subject: - fix for skip_deleted git-svn-id: https://svn.roundcube.net/trunk@3027 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/include') 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); -- cgit v1.2.3