diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-25 08:57:03 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-25 08:57:03 +0200 |
commit | 855c85377d44943ba307d083632c6c5a9f1c98ad (patch) | |
tree | ced0b2e8cc64cc3c1b18aedd596e50867d16bf9f /program/lib/Roundcube/rcube_imap_generic.php | |
parent | 3a0f8227679af7199c0fe4d7ac1bdcf4f68cd943 (diff) |
Performance improvement for searching in threaded mode. We can use
cached index now. Some other small improvements.
Diffstat (limited to 'program/lib/Roundcube/rcube_imap_generic.php')
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index b2ac9eaf5..2bf199c2b 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -1563,11 +1563,12 @@ class rcube_imap_generic } // message IDs - if (!empty($add)) + if (!empty($add)) { $add = $this->compressMessageSet($add); + } list($code, $response) = $this->execute($return_uid ? 'UID SORT' : 'SORT', - array("($field)", $encoding, 'ALL' . (!empty($add) ? ' '.$add : ''))); + array("($field)", $encoding, !empty($add) ? $add : 'ALL')); if ($code != self::ERROR_OK) { $response = null; |