imap_search() does not send escaped double-quotes to the imap server

From: Date: Tue, 12 Jun 2001 13:06:11 +0000
Subject: imap_search() does not send escaped double-quotes to the imap server
Groups: php.dev 
Request: Send a blank email to php-dev+get-56661@lists.php.net to get a copy of this message
From: pb@wantech.se 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 php-dev@lists.php.net 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

« previous php.dev (#56661) next »