|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-07-09 20:50 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 00:00:02 2025 UTC |
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?