PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #7207 imap_open bug
Submitted:14 Oct 2000 12:35pm UTC Modified: 30 Oct 2000 9:26am UTC
From:brain at brainlapse Assigned to:
Status:Closed Category:IMAP related
Version:4.0.3 OS:win98se
View/Vote Developer Edit Submission

[14 Oct 2000 12:35pm 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.
[15 Oct 2000 9:45pm UTC] sniper@php.net
I can not reproduce this. Could you please include a shortest possible 
reproducing script into this bug report?

--Jani
[30 Oct 2000 9:26am UTC] sniper@php.net
No feedback and I can not reproduce this with
latest working CVS.

--Jani
[4 Aug 2004 7:34am 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.
[18 Aug 2004 10:59pm 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.

Result:

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

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC