|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7207 imap_open bug
Submitted: 2000-10-14 12:35 UTC Modified: 2000-10-30 09:26 UTC
From: brain at brainlapse Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.3 OS: win98se
Private report: No CVE-ID: None
 [2000-10-14 12:35 UTC] brain at brainlapse
when there are no messages in an INBOX, the error "Fatal error: Mailbox is empty in C:\Program Files\Apache Group\Apache\htdocs/mail.php3 on line XX" 

Adding the @ in front of imap_open does nothing. When there are messages this error does not apear.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-15 21:45 UTC]
I can not reproduce this. Could you please include a shortest possible 
reproducing script into this bug report?

 [2000-10-30 09:26 UTC]
No feedback and I can not reproduce this with
latest working CVS.

 [2004-08-04 07:34 UTC] a at a dot com
After almost 4 years, this problem continues to be unaddressed.

The mail-box-empty message is reported as an error, which is wrong.  If the mail box is empty, imap_last_error should not return this as an error.
 [2004-08-18 22:59 UTC] compu_global_hyper_mega_net_2 at yahoo dot com
This bug should be reopened.  The current behaviour is really wrong.

$mbox = @imap_open('{localhost:110/pop3}INBOX', 'user', 'password');

Obviously, in the above example, I have a pop3 server running on localhost, with the user/password credentials.


PHP Notice:  (null)(): Mailbox is empty (errflg=1) in Unknown on line 0

Notice: (null)(): Mailbox is empty (errflg=1) in Unknown on line 0
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 08:01:29 2024 UTC