|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11871 imap_search fails to search using FROM
Submitted: 2001-07-04 06:15 UTC Modified: 2002-05-24 20:19 UTC
From: fjortiz at comunet dot es Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.0.5 OS: Windows MT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: fjortiz at comunet dot es
New email:
PHP Version: OS:


 [2001-07-04 06:15 UTC] fjortiz at comunet dot es
Using PHP4.0.5 as CGI under Windows NT/IIS 4, and trying to connect a imap-4.7-5 server in a Linux box, everything works fine except imap_search with a search string like: 

'FROM "james"'  or
"FROM \"james\"" or 

all the other search options work fine (SUBJECT, CC ...), it's from that fails


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-04 06:28 UTC]
Can you try this with 4.0.6? There where some fixes with the IMAP extension IIRC.

 [2001-07-05 05:34 UTC] fjortiz at comunet dot es
we have tested 4.0.3pl1, 4.0.5 and 4.0.6. These are the results:

4.0.3pl1: only SUBJECT "this is my subject" works, and ONLY if the string is exactly the same as the subject. For example SUBJECT "this is" wouldn't work, we don't know if there are "LIKE" clauses or it must be a perfect match. 

CC and FROM clauses don't work.

4.0.5 and 4.0.6: nothing works with imap_search, not even those SUBJECT with full text that worked with 4.0.3pl1.

Remember we have an imap-4.7-5 server on RH Linux 6.2

 [2002-05-24 20:19 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 01:01:29 2024 UTC