From 6913c0ae86cf7e4f1cee74932089b5f250744c09 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 30 Jun 2013 11:29:24 +0200 Subject: Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date" --- program/lib/Roundcube/rcube_imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index 869fa9eea..356f4f1db 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -1336,7 +1336,7 @@ class rcube_imap extends rcube_storage // THREAD=REFERENCES: sorting by sent date of root message // THREAD=REFS: sorting by the most recent date in each thread - if ($this->threading != 'REFS') { + if ($this->threading != 'REFS' || ($this->sort_field && $this->sort_field != 'date')) { $sortby = $this->sort_field ? $this->sort_field : 'date'; $index = $this->index_direct($this->folder, $sortby, $this->sort_order, false); -- cgit v1.2.3