php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11279 imap_fetch_overview sometimes returns wrong message size (1 byte extra)
Submitted: 2001-06-04 22:46 UTC Modified: 2001-06-05 01:56 UTC
From: andy at mindgate dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4pl1 OS: Win 98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andy at mindgate dot net
New email:
PHP Version: OS:

 

 [2001-06-04 22:46 UTC] andy at mindgate dot net
$mbox=imap_open("{pop3.mindgate.net/pop3:110}INBOX","name","passwd") or die ($imap_last_error());
$numMsgs=imap_num_msg($mbox);
$i=1;
while ($i<=$numMsgs) {
  $oview=imap_fetch_overview($mbox,$i);
  print $i." - ".$oview[0]->size."<br>";
  $i++;
}

Isn't it supposed to return the same number as that shown by the LIST command in POP?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-04 22:56 UTC] andy at mindgate dot net
On one POP server (mail.netasia.net), the message sizes are off by many bytes and the # of bytes off varies from one message to another.  (However multiple identical messages do have the same sizes in the imap_fetch_overview info.)  

On another POP server (pop3.mindgate.net), imap_fetch_overview goes through a few hundred messages with the correct sizes (vis-a-vis the LIST command), then suddenly a run of sizes which are off by just 1 byte.
 [2001-06-05 01:56 UTC] sniper@php.net
This is not PHP problem. The underlying c-client library
handles this so the bug is in it if it's not the pop server.

You could try updating to newer PHP 4.0.5 which
might have newer (IMAP-2000) c-client in it.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 00:01:34 2024 UTC