php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15197 imap_reopen() returns TRUE instead FALSE called with nonexistant mailbox
Submitted: 2002-01-24 04:02 UTC Modified: 2002-06-26 19:38 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: alex at phobgate dot de Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.0.6 OS: FreeBSD 4.4 RELEASE
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at phobgate dot de
New email:
PHP Version: OS:

 

 [2002-01-24 04:02 UTC] alex at phobgate dot de
using imap_reopen using invalid/nonexistant mailbox name, imap_reopen() returns TRUE instead of FALSE. happens on previously, successfully opened imap stream with imap_open(), but not selecting specific mailbox, just opening connection to imapd.
imapd reports 'NO Mailbox does not exist' on request 'EXAMINE INBOX.asdasdasd' (and other nonexistant mailboxes) but imap_reopen() doesn't return this error. see appended logfile from imapd connection.

php-4.0.6 with following configure options:
./configure --with-mysql=/usr/local --with-ttf --enable-track-vars --with-apache=../apache_1.3.22 --with-imap --with-imlib=/usr/X11R6 --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-freetype-dir=/usr/local --with-xpm-dir=/usr/X11R6

c-client library: imap-4.7c2.tar.Z
imapd: cyrus imapd 1.6.24

logfile from imapd connection:
00000001 OK User logged in
00000002 CAPABILITY
n* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS X-NON-HIERARCHICAL-RENAME NO_ATOMIC_RENAME UNSELECT ID
00000002 OK Completed
00000003 NOOP
L00000003 OK Completed
00000004 EXAMINE INBOX.asdasdasd
l00000004 NO Mailbox does not exist
00000005 SEARCH ALL
X00000005 BAD Please select a mailbox first
00000006 LOGOUT
L* BYE LOGOUT received
00000006 OK Completed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-26 19:38 UTC] sniper@php.net
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 http://www.php.net/downloads.php

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: Thu Mar 28 18:01:29 2024 UTC