ID:               16781
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: Linux RedHat 7.2
 PHP Version:      4.2.0
 New Comment:

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



Previous Comments:
------------------------------------------------------------------------

[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);
?>

------------------------------------------------------------------------

[2002-04-24 22:01:44] [EMAIL PROTECTED]

Please add a short example script which can be used to reproduce this.


------------------------------------------------------------------------

[2002-04-23 21:21:32] [EMAIL PROTECTED]

I have ever just compiled 4.2.0, but it is still not working! I have
RH7.2(2.4.7), PHP 4.2.0 Compiled as CGI module, c-client 4.1 with
kerberos 5 support. imap_open() works fine, when i am specifing
incorrect password it fails so there is no problem with that. But
stream returned by imap_open() for POP3 mailbox is always pointing to
an empty mailbox even if there are more than 100 messages! I have tried
this under different mailservers (e.g. POP3 server on localserver and
remote) and results always were same.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16781&edit=1

Reply via email to