diff --git a/CHANGELOG b/CHANGELOG index 71e87b155..c341b246e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -51,6 +51,7 @@ CHANGELOG Roundcube Webmail - Enigma: Fix decryption of messages encoded with non-ascii charset (#5962) - Fix missing cursor in HTML editor on mail reply (#5969) - Fix (again) bug where image data URIs in css style were treated as evil/remote in mail preview (#5580) +- Fix bug where mail search could return empty result on servers without SORT capability (#5973) RELEASE 1.3.1 ------------- diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index cf84f84c5..accdd3965 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -1390,8 +1390,7 @@ class rcube_imap extends rcube_storage $index = new rcube_result_index($folder, '* ESEARCH ALL ' . $search); } else { - $index = $this->index_direct($folder, $this->search_charset, - $this->sort_field, $this->search_set); + $index = $this->index_direct($folder, $this->sort_field, $this->sort_order, $this->search_set); } }