Bug #11433 Updated: imap_search() does not send escaped double-quotes to the imap server
| From: | sniper@php.net | Date: | Tue, 12 Jun 2001 17:49:05 +0000 |
| Subject: | Bug #11433 Updated: imap_search() does not send escaped double-quotes to the imap server | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57016@lists.php.net to get a copy of this message | ||
ID: 11433
Updated by: sniper
Reported By: pb@wantech.se
Old-Status: Open
Status: Bogus
Bug Type: IMAP related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Not a bug in PHP. Please report this to the c-client author.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-12 09:02:20] pb@wantech.se
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11433&edit=2