diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-31 07:14:32 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-31 07:14:32 +0000 |
| commit | b9956709264498a31dd57c4627e19b0e4f6787f0 (patch) | |
| tree | 775c032019c376d74fe55a80af6e173acd414ddb /roundcubemail/program/include/rcube_imap.php | |
| parent | f4435430891b6cf69669f1d0593e371d6153677e (diff) | |
- fix save/delete draft message with enabled threading (#1486596)
- performance improvement using UID SEARCH intead of SEARCH + FETCH
- re-fix r3445
git-svn-id: https://svn.roundcube.net/trunk@3446 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 26d0ef48a..7dc70df32 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -1414,6 +1414,27 @@ class rcube_imap return $a_messages; } + + /** + * Direct (real and simple) SEARCH request to IMAP server, + * without result sorting and caching + * + * @param string Mailbox name to search in + * @param string Search string + * @param boolean True if UIDs should be returned + * @return array Search results as list of message IDs or UIDs + * @access public + */ + function search_once($mbox_name='', $str=NULL, $ret_uid=false) + { + if (!$str) + return false; + + $mailbox = $mbox_name ? $this->mod_mailbox($mbox_name) : $this->mailbox; + + return $this->conn->search($mailbox, $str, $ret_uid); + } + /** * Sort thread |
