From: [EMAIL PROTECTED] Operating system: Solaris 8 PHP version: 4.0.5 PHP Bug Type: IMAP related Bug description: imap_search() does not send escaped double-quotes to the imap server When imap_search() string contains no whitespace (ex: imap_search($mbox, "SUBJECT \"1234\""); ), it doesn't include the double-quotes in the command to the imap server. The search above would result in this command to the imap server (verified with a packetsniffer): SEARCH ALL SUBJECT 1234 If you run UW's imapd, this is not a problem, however, courier-imap requires double-quotes around the searchstring. Some strings work, but strings containing special characters or only numbers will fail if they are not surrounded by double-quotes. If you instead do the following search: imap_search($mbox, "SUBJECT \"1234 1234\""); it will result in: SEARCH ALL SUBJECT "1234 1234" /pb Warning: Could not execute mail delivery program in /local/Web/sites/phpweb/bugs.php on line 413 Mail not sent! Please send this page in a mail to [EMAIL PROTECTED] manually. -- Patrik Bäckström - Dir +46-31-7484911 - Mob +46-703-784911 Wantech AB - http://www.wantech.se/ - Tel +46-31-7484900 - Fax +46-31-7484919 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]