Bug #16636 [Opn->Bgs]: getRawHeaders bugger up the From line.
| From: | gabe at dragffy dot com | Date: | Wed, 23 Sep 2009 12:04:44 +0000 |
| Subject: | Bug #16636 [Opn->Bgs]: getRawHeaders bugger up the From line. | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1699@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16636&edit=1
ID: 16636
Updated by: gabe@dragffy.com
Reported By: gabe at dragffy dot com
Summary: getRawHeaders bugger up the From line.
-Status: Open
+Status: Bogus
Type: Bug
Package: Net_POP3
Operating System: CentOS4
Package Version: 1.3.7
PHP Version: 5.1.4
Roadmap Versions:
New Comment:
-Status: Open
+Status: Bogus
my bad!
Previous Comments:
------------------------------------------------------------------------
[2009-09-23 12:08:33] dinklyink
Description:
------------
also getParsedHeaders() do the same.
I really want to extract the email address from the From field, or even
the return-path but both are getting nuked. I would have wanted
getRawHeaders to not meddle with the headers at all.
Checking the source of a test email I can see the email address exists
in return-path and from headers, but I cannot access using Net_POP3.
Please help!
Test script:
---------------
$pop3 = new Net_POP3();
$pop3->connect("mail.example.co.uk", 110)
$pop3->login("gabe@example.co.uk", "password");
foreach ($pop3->getListing() as $mailList)
{
$rawHeaders = $pop3->getRawHeaders($mailList['msg_id']);
echo $rawHeaders['From'];
}
unset($mailList);
$pop3->disconnect();
Expected result:
----------------
From: Gabriel <gabe@example.co.uk>
Actual result:
--------------
From: Gabriel Dragffy
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16636&edit=1