PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_POP3 » Bug #9588

Headers Incomplete

Details

Submitted2006-12-08 20:43 UTC
Fromadmin at eycdwebdesign dot co dot uk
StatusBogus
PackageNet_POP3
PHP Version5.1.6
OSUbuntu Edge 6.10
Roadmaps(Not assigned)

Comments

[2006-12-08 20:43 UTC] admin at eycdwebdesign dot co dot uk

Description:
------------
Header values missing or incomplete, whilst comparing to Telnet and other mail clients.

To header is missing

From header is incomplete, instead of "Name" <E-Mail Address> I get "Name".

Reply-To header appears in the list but is empty.

There could be more but From and Reply-To are needed to display the sender in my web mail application.

Test script:
---------------
<?php

include 'Net/POP3.php';

$POP3 =& new Net_POP3();
$POP3->connect('mailserver', 110);
$POP3->login('user','pass');

$msgCount = $POP3->numMsg();

echo "<pre>" . $POP3->getRawHeaders(1) . "</pre>";

$POP3->disconnect();

?>

Expected result:
----------------
Received: from gatekeeper03.tjcis ([81.144.183.34]) by home with MailEnable ESMTP; Tue, 28 Nov 2006 00:42:17 +0000
Received: from mail pickup service by TJGEGEAPPP202.tjcis with Microsoft SMTPSVC;
Tue, 28 Nov 2006 00:42:16 +0000
Reply-To: <cwjobs@cwjobsmail.co.uk>
Thread-Topic: NEW jobs matching - .Net; Location: Newcastle Upon Tyne, Tyne and Wear + 10 miles;
X-Mailer: PJB Mailer
thread-index: AccShg0+1z3GIESwTRawVIPq5WBgRg==
From: "CWJobs.co.uk" <cwjobs@cwjobsmail.co.uk>
To: <hidden>
Cc:
Bcc:
Subject: NEW jobs matching - .Net; Location: Newcastle Upon Tyne, Tyne and Wear + 10 miles;
Date: Tue, 28 Nov 2006 00:42:16 -0000
MIME-Version: 1.0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
X-OriginalArrivalTime: 28 Nov 2006 00:42:16.0049 (UTC) FILETIME=[0D3EDE10:01C71286]

Actual result:
--------------
Received: from gatekeeper03.tjcis ([81.144.183.34]) by home with MailEnable ESMTP; Tue, 28 Nov 2006 00:42:17 +0000
Received: from mail pickup service by TJGEGEAPPP202.tjcis with Microsoft SMTPSVC;
Tue, 28 Nov 2006 00:42:16 +0000
Reply-To:
Thread-Topic: NEW jobs matching - .Net; Location: Newcastle Upon Tyne, Tyne and Wear + 10 miles;
X-Mailer: PJB Mailer
thread-index: AccShg0+1z3GIESwTRawVIPq5WBgRg==
From: "CWJobs.co.uk"
To:
Cc:
Bcc:
Subject: NEW jobs matching - .Net; Location: Newcastle Upon Tyne, Tyne and Wear + 10 miles;
Date: Tue, 28 Nov 2006 00:42:16 -0000
MIME-Version: 1.0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
X-OriginalArrivalTime: 28 Nov 2006 00:42:16.0049 (UTC) FILETIME=[0D3EDE10:01C71286]

[2006-12-08 20:52 UTC] admin at eycdwebdesign dot co dot uk

Wrong Package selected

[2006-12-09 13:25 UTC] admin at eycdwebdesign dot co dot uk

Resolved!

I was looking through the documentation and noticed

htmlspecialchars($pop3->getRawHeaders(1))

so I tried that and my missing details appeared.

Sorry for wasting your time.