From 3866fd4681577010011494275580516f7b29f970 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 27 Jan 2009 07:31:14 +0000 Subject: - Fix large search results in non-default_imap_folders when imap_root is set (#1485703) --- program/include/rcube_imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 287c3ee65..5b3267bef 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -685,7 +685,7 @@ class rcube_imap $cnt = count($msgs); if ($cnt > 300 && $cnt > $this->page_size) { // experimantal value for best result // use memory less expensive (and quick) method for big result set - $a_index = $this->message_index($mailbox, $this->sort_field, $this->sort_order); + $a_index = $this->message_index('', $this->sort_field, $this->sort_order); // get messages uids for one page... $msgs = array_slice($a_index, $start_msg, min($cnt-$start_msg, $this->page_size)); // ...and fetch headers -- cgit v1.2.3