php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41397 imap_headerinfo breaks after calling imap_fetch_overview
Submitted: 2007-05-15 12:20 UTC Modified: 2009-12-12 01:00 UTC
Votes:5
Avg. Score:4.2 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:2 (40.0%)
From: laacz at laacz dot lv Assigned: iliaa (profile)
Status: No Feedback Package: IMAP related
PHP Version: 5.2.2 OS: Gentoo
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: laacz at laacz dot lv
New email:
PHP Version: OS:

 

 [2007-05-15 12:20 UTC] laacz at laacz dot lv
Description:
------------
If imap_fetch_overview is called, imap_headerinfo returns only first from multiple recepients in 'to' and 'toaddress'.

Reproduce code:
---------------
// IMAP connection before this

$info = imap_headerinfo($imap, 110)
// Following outputs a@b.com, b@a.com, "Another user" <c@a.com>
echo $info->toaddress . "\n";

$messages = imap_fetch_overview($imap, $range);

$info = imap_headerinfo($imap, 110); 
// Following outputs a@b.com
echo $info->toaddress . "\n";


Expected result:
----------------
a@b.com, b@a.com, "Another user" <c@a.com>
a@b.com, b@a.com, "Another user" <c@a.com>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-12 09:56 UTC] a dot hoch at arcor dot de
I can confirm this bug for this version:
PHP 4.4.7-pl0-gentoo (cli) (built: May 29 2007 21:28:11)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
 [2007-06-17 15:28 UTC] jsimlo at yahoo dot com
The same problem occurs allso with $info->ccaddress.

Confirmed on FreeBSD 6.2-STABLE.
 [2008-07-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-12-04 10:54 UTC] xdangelx at gmail dot com
I can confirm this bug still exists so must not have been fixed in 
subsequent updates...

If imap_fetch_overview is called then imap_headerinfo does not show 
multiple to or toaddress recepients.

I am using the newest versions of PHP and c_Client (2009c) I think it is  
cant remember as I checked last night...

This should really have been fixed in the 2 years it was mentioned?
 [2009-12-04 14:04 UTC] pajoye@php.net
Which c-client do you use and which PHP version? Please give the exact version, it may affect how these functions work.
 [2009-12-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 17:01:24 2020 UTC