diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-04 09:58:37 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-04 09:58:37 +0000 |
| commit | 986d9b9b9f0e8bda0fdbe5e968f3fc0fc9731f03 (patch) | |
| tree | 8893badd644518bbec86aae5955feb6086cac064 /roundcubemail/program/include/rcube_imap.php | |
| parent | 12879e697fede747e673a78b2e09c9b181da8840 (diff) | |
- performance improvement: skip SEARCH command when mailbox is empty and SEARCH is called just after SELECT
git-svn-id: https://svn.roundcube.net/trunk@3712 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 09ea4df5e..55b082048 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -476,11 +476,7 @@ class rcube_imap $search_str .= " UNSEEN"; // get message count using SEARCH // not very performant but more precise (using UNDELETED) - // disable THREADS for this request - $threads = $this->threading; - $this->threading = false; - $index = $this->_search_index($mailbox, $search_str); - $this->threading = $threads; + $index = $this->conn->search($mailbox, $search_str); $count = is_array($index) ? count($index) : 0; |
