summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-01-27 07:31:14 +0000
committeralecpl <alec@alec.pl>2009-01-27 07:31:14 +0000
commit3866fd4681577010011494275580516f7b29f970 (patch)
treed86c89e481136e93136152137beef9088f7ad1cd /program/include/rcube_imap.php
parent0d57de907f0e2a64535097e573f863619373d5ce (diff)
- Fix large search results in non-default_imap_folders when imap_root is set (#1485703)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
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