summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-16 14:17:08 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-16 14:17:08 +0100
commit2baeac116abef9d5bcb748c687577d16dce868a0 (patch)
tree448611cf8b0fdc435d6456350b6f831cb6fdbb92 /program/lib/Roundcube
parent25a244908b21b097f744c7194e4862ca6ebda391 (diff)
Fix sorting and paging in cross-folder searches
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r--program/lib/Roundcube/rcube_imap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index 0cf34b2ca..e265946f2 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -952,7 +952,7 @@ class rcube_imap extends rcube_storage
$search_set = $this->search_set;
$this->sort_field = null;
- $this->page_size = 100; // limit to 100 messages per folder
+ $this->page_size = 1000; // fetch up to 1000 matching messages per folder
$a_msg_headers = array();
foreach ($search_set->sets as $resultset) {
@@ -970,7 +970,7 @@ class rcube_imap extends rcube_storage
// sort headers
if (!$this->threading && !empty($a_msg_headers)) {
- $a_msg_headers = $this->conn->sortHeaders($a_msg_headers, $this->sort_field, $this->sort_order);
+ $a_msg_headers = $this->conn->sortHeaders($a_msg_headers, $sort_field, $this->sort_order);
}
// only return the requested part of the set