diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-04-08 15:17:19 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-04-08 15:17:19 +0200 |
commit | 94e797c1fbc5ae1ce3c57bdc5cdaabd3a9f8f911 (patch) | |
tree | 7abe5cbc3ff1a564ade6ffc4f59e9b8f377b5a96 /program/lib/Roundcube/rcube_imap.php | |
parent | 5aab24e5473566b6eda119a6ab0ba7e3e286366f (diff) |
Consider sort order in UID sort mode of multi-folder search results
Diffstat (limited to 'program/lib/Roundcube/rcube_imap.php')
-rw-r--r-- | program/lib/Roundcube/rcube_imap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index 23cacd4d2..a2f610a0a 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -988,6 +988,10 @@ class rcube_imap extends rcube_storage $a_msg_headers = array_slice(array_values($a_msg_headers), $from, $slice_length); } else { + if ($this->sort_order != $search_set->get_parameters('ORDER')) { + $search_set->revert(); + } + // slice resultset first... $fetch = array(); foreach (array_slice($search_set->get(), $from, $slice_length) as $msg_id) { |