#45470 [Fbk->Opn]: IMAP with Exchange doesn't work

From: Date: Thu, 10 Jul 2008 13:22:23 +0000
Subject: #45470 [Fbk->Opn]: IMAP with Exchange doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126438@lists.php.net to get a copy of this message
ID: 45470 User updated by: kevin at icscomp dot com Reported By: kevin at icscomp dot com -Status: Feedback +Status: Open Bug Type: IMAP related Operating System: Windows 2003 Server PHP Version: 5.2.6 New Comment: I have tried using this as well: 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); Same result. Any ideas? Previous Comments: ------------------------------------------------------------------------ [2008-07-10 08:18:38] jani@php.net Shouldn't you be using same server name in both imap_open() and imap_status() ?? ------------------------------------------------------------------------ [2008-07-09 20:50:56] kevin at icscomp dot com Description: ------------ When I run the PHP commands to try to retrieve the unread messages using the imap_status command, I am finding that no data is being returned. Additionally, the data that is being returned is random numbers each time I push the refresh button. I would really like to see this issue be fixed. Thanks. My code is below: Here is the output Help! Reproduce code: --------------- $mbox = imap_open("{mailserver:993/imap/ssl}", "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=45470&edit=1

« previous php.bugs (#126438) next »