summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-08 10:58:56 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-08 10:58:56 +0200
commit188304872066eef4b20c305f9cd6ea939dd419e0 (patch)
tree6dcf6daf1b3a970b99ddf60cc650b9c541e2e242 /program/steps
parent518963d1d4456afa6f044731e2127d488f68bb16 (diff)
Optimize header fetching of multi-folder searches with natural (UID) sorting
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/search.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index 797c8fcd8..c97e3ac5a 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -108,7 +108,8 @@ if (!empty($subject)) {
// search all, current or subfolders folders
if ($scope == 'all') {
- $mboxes = $RCMAIL->storage->list_folders_subscribed('', '*', 'mail');
+ $mboxes = $RCMAIL->storage->list_folders_subscribed('', '*', 'mail', null, true);
+ natcasesort($mboxes); // we want natural alphabetic sorting of folders in the result set
}
else if ($scope == 'sub') {
$mboxes = $RCMAIL->storage->list_folders_subscribed($mbox, '*', 'mail');