php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16781 imap support doesn'r work fine
Submitted: 2002-04-23 21:21 UTC Modified: 2002-06-16 00:14 UTC
From: newton at islu dot irk dot ru Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.2.0 OS: Linux RedHat 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: newton at islu dot irk dot ru
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-24 22:01 UTC] sniper@php.net
Please add a short example script which can be used to reproduce this.

 [2002-04-24 22:08 UTC] newton at islu dot irk dot ru
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:16 UTC] sniper@php.net
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:19 UTC] newton at islu dot irk dot ru
Bad news: your varinat is working like the rest all, and i have imap-2001a ;((
 [2002-04-24 22:33 UTC] sniper@php.net
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 23:14 UTC] newton at islu dot irk dot ru
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 23:16 UTC] newton at islu dot irk dot ru
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?
 [2002-06-16 00:14 UTC] sniper@php.net
PHP just shows the information it gets with the c-client
functions. So please report this to the c-client author.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 14:01:28 2024 UTC