|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11433 imap_search() does not send escaped double-quotes to the imap server
Submitted: 2001-06-12 09:02 UTC Modified: 2001-06-12 13:49 UTC
From: pb at wantech dot se Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.0.5 OS: Solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pb at wantech dot se
New email:
PHP Version: OS:


 [2001-06-12 09:02 UTC] pb at wantech dot 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):


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:




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-12 13:49 UTC]
Not a bug in PHP. Please report this to the c-client author.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 04:03:36 2021 UTC