From 170b72ab78c4fd0275fb55d62099ce7e99ff4028 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 08 Oct 2009 14:18:04 -0400
Subject: [PATCH] - fix for skip_deleted
---
program/include/rcube_imap.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index d1021fd..9ca1167 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -602,7 +602,8 @@
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);
--
Gitblit v1.9.1