ID: 16781
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: IMAP related
Operating System: Linux RedHat 7.2
PHP Version: 4.2.0
New Comment:
PHP or c-client is marking all messages as recent even if they are
absolutely new. imap_headers is returning an empty array so how can I
access headers of messages?
Previous Comments:
------------------------------------------------------------------------
[2002-04-24 23:14:57] [EMAIL PROTECTED]
object(stdClass)(5) {
["Date"]=>
string(37) "Wed, 24 Apr 2002 23:15:37 -0400 (EDT)"
["Driver"]=>
string(4) "pop3"
["Mailbox"]=>
string(53) "{localhost.localdomain:110/pop3/user="lyubvine"}INBOX"
["Nmsgs"]=>
int(0)
["Recent"]=>
int(4)
}
------------------------------------------------------------------------
[2002-04-24 22:33:19] [EMAIL PROTECTED]
Reread your original comment..there is no problem in connection but
with the imap_num_msg() function, right?
Try adding this there:
$arr = imap_check($inbox);
var_dump($arr);
What does it output?
--Jani
------------------------------------------------------------------------
[2002-04-24 22:19:31] [EMAIL PROTECTED]
Bad news: your varinat is working like the rest all, and i have
imap-2001a ;((
------------------------------------------------------------------------
[2002-04-24 22:16:07] [EMAIL PROTECTED]
What if you use this imap_open() line:
$inbox = imap_open ("{localhost:110/pop3}INBOX", "user_id",
"password");
Does it work any better? Also, I'd suggest you update
your c-client to imap-2001a.
--Jani
------------------------------------------------------------------------
[2002-04-24 22:08:13] [EMAIL PROTECTED]
No problem, something like that:
<?php
Header("Content-type: text/plain");
$inbox=imap_open("{localhost/pop3:110}", "username", "password");
$total = imap_num_msg($inbox);
echo "Total: $total messages";
imap_close($inbox);
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16781
--
Edit this bug report at http://bugs.php.net/?id=16781&edit=1