summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-27 07:31:14 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-27 07:31:14 +0000
commit990b56b22650010732731da5cf4b997b1826a345 (patch)
treeb1c3bde61d42571da2e5a317c8f4e711a0eb2eae
parent94db895439ff18b71f60d42fba578ec73b3be144 (diff)
- Fix large search results in non-default_imap_folders when imap_root is set (#1485703)
git-svn-id: https://svn.roundcube.net/trunk@2262 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index 287c3ee65..5b3267bef 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/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