|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45669 IMAP with Exchange doesn't work - Part II
Submitted: 2008-07-31 17:08 UTC Modified: 2008-07-31 22:45 UTC
From: kevin at icscomp dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.2.6 OS: Windows 2003 Server
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: kevin at icscomp dot com
New email:
PHP Version: OS:


 [2008-07-31 17:08 UTC] kevin at icscomp dot com
This is in reference to Bug #45470 which was pre-maturely closed.

In the last response this is the information I was given:

"It's just that Exhange + IMAP == not very good idea. It's not any PHP bug anyway, we just wrap around the UW Imap c-client lib, so you should complain to the author of it. But consider yourself warned: He'll say about same what I said above. :)"

But then I tried using the imap_num_recent and imap_check and these functions from Exchange, leaving me to believe there is a definite problem with the imap_status function in php.  Please address this.

Reproduce code:
OP_READONLY, 1) or die("can't connect: ".imap_last_error());
$imap_obj = imap_status($mbox, "{mail:993/imap/ssl}/INBOX", SA_UNSEEN);

Expected result:
I assume something like:

object(stdClass)#19 (1) { ["Unread"]=> int(5) } 

Actual result:
Output 1:
object(stdClass)#19 (1) { ["flags"]=> int(0) } 

Output 2:
object(stdClass)#19 (2) { ["flags"]=> int(26571976) ["uidnext"]=>
int(26649488) }

back and forth .... no other data is listed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-31 22:45 UTC]
Please report this to the UW IMAP c-client author. We just wrap around that library.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 18:03:43 2023 UTC