diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-12 09:59:10 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-12 09:59:10 +0200 |
commit | a04a74fec4b5e13e8464f1f3c9071fa0b56a13eb (patch) | |
tree | bb8a95c198ecb89afa89caafc641b5b2a12e03a7 /program/steps/mail/search.inc | |
parent | c093dcc391ad886ab815e6e70630c8e252df06ab (diff) |
Improvements in building criteria string for IMAP SEARCH
Diffstat (limited to 'program/steps/mail/search.inc')
-rw-r--r-- | program/steps/mail/search.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc index 670680959..db5424b3b 100644 --- a/program/steps/mail/search.inc +++ b/program/steps/mail/search.inc @@ -100,7 +100,7 @@ $search = isset($srch) ? trim($srch) : trim($str); if (!empty($subject)) { $search_str .= str_repeat(' OR', count($subject)-1); foreach ($subject as $sub) - $search_str .= sprintf(" %s {%d}\r\n%s", $sub, strlen($search), $search); + $search_str .= ' ' . $sub . ' ' . rcube_imap_generic::escape($search); } $search_str = trim($search_str); |