Ticket #1483855: bincimap_search_fix.diff
| File bincimap_search_fix.diff, 1.1 KB (added by jpingle, 4 years ago) |
|---|
-
program/include/rcube_imap.inc
859 859 function search($mbox_name='', $criteria='ALL', $str=NULL) 860 860 { 861 861 $mailbox = $mbox_name ? $this->_mod_mailbox($mbox_name) : $this->mailbox; 862 if ($str && $criteria)863 {864 $criteria = 'CHARSET UTF-8 '.$criteria.' "'.UTF7EncodeString($str).'"';865 return $this->_search_index($mailbox, $criteria);866 }867 else868 return $this->_search_index($mailbox, $criteria);869 }870 862 863 if ($str && $criteria) 864 { 865 $searchstring = 'CHARSET UTF-8 '.$criteria.' "'.UTF7EncodeString($str).'"'; 866 } 867 868 $messages = $this->_search_index($mailbox, $searchstring); 871 869 870 if ($messages == false) 871 { 872 $searchstring = $criteria.' "'.$str.'"'; 873 $messages = $this->_search_index($mailbox, $searchstring); 874 } 875 876 return $messages; 877 878 } 879 872 880 /** 873 881 * Private search method 874 882 *
