#45669 [Opn->Bgs]: IMAP with Exchange doesn't work - Part II
| From: | jani@php.net | Date: | Thu, 31 Jul 2008 22:45:42 +0000 |
| Subject: | #45669 [Opn->Bgs]: IMAP with Exchange doesn't work - Part II | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127455@lists.php.net to get a copy of this message | ||
ID: 45669
Updated by: jani@php.net
Reported By: kevin at icscomp dot com
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: Windows 2003 Server
PHP Version: 5.2.6
New Comment:
Please report this to the UW IMAP c-client author. We just wrap around
that library.
Previous Comments:
------------------------------------------------------------------------
[2008-07-31 17:08:49] kevin at icscomp dot com
Description:
------------
This is in reference to Bug #45470 which was pre-maturely closed.
http://bugs.php.net/bug.php?id=45470
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:
---------------
imap_open("{mailserver:993/imap/ssl}/INBOX",
"domain/user","password",
OP_READONLY, 1) or die("can't connect: ".imap_last_error());
$imap_obj = imap_status($mbox, "{mail:993/imap/ssl}/INBOX",
SA_UNSEEN);
var_dump($imap_obj);
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45669&edit=1