|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-23 21:21 UTC] newton at islu dot irk dot ru
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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
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); ?>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. --Janiobject(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) }