Skip Menu |

This queue is for tickets about the Mail-Field-Received CPAN distribution.

Report information
The Basics
Id: 51169
Status: new
Priority: 0/
Queue: Mail-Field-Received

People
Owner: Nobody in particular
Requestors: helge [...] aksdal.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Parsing error
Date: Fri, 6 Nov 2009 16:05:38 +0100
To: bug-Mail-Field-Received [...] rt.cpan.org
From: Helge Aksdal <helge [...] aksdal.net>
Hi, I'm using Mail::Field (lastest version) to parse Received headers like this: my $received = Mail::Field->new('Received', $header); my $result = $received->parse_tree(); The bug occurs when I'm trying to parse a header that looks like this: Received: from 140.85.213.193.static.cust.telenor.com ([193.213.85.140])        by einstein.junkemailfilter.com with esmtp (Exim 4.69)        id 1N63Ug-0008GI-Vp on interface=64.71.167.93        for xxxxx@xxxxxcom; Thu, 05 Nov 2009 06:39:23 -0800 From: VIAGRA (c) Official Site <oobfju@acelogic.com> To: xxxx@xxxxx.com Subject: Dear xxxx@xxxxx.com 80% 0FF on Pfizer. MIME-Version: 1.0 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Now Mail::Field will return the IP-address 140.85.213.193 wich is wrong, instead of the correct one 193.213.85.140. It would also be nice if one did not have to remove Received: from the header before Mail::Field is able to parse it. -- Helge Aksdal