Skip Menu |

This queue is for tickets about the Courriel CPAN distribution.

Report information
The Basics
Id: 94837
Status: resolved
Priority: 0/
Queue: Courriel

People
Owner: Nobody in particular
Requestors: jcrotty_alpine [...] hotmail.com
Cc:
AdminCc:

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

Attachments
1397598970557.5849015a90cfee9916ffe0fc36f79fab.jcrotty



Subject: unparseable chunk in the header text
Courriel .31 Perl 5.16.3 CentOS 6.5 The attached email throws following error: Found an unparseable chunk in the header text starting at line 4: Received: from forward1-smtp.messagingengine.com (forward1-smtp.messagingengine.com [66.111.4.223]) by mxa.senderscore.net (Postfix) with ESMTP id 440FE140006 for <fastmailcomp@senderscore.net>; Tue, 15 Apr 2014 15:55:48 -0600 (MDT) I dug around in the code a bit, but can't figure out the exact problem. The place I work at parses a lot of email in the wild and we have lots of emails like this one that are failing daily since switching to Courriel a few days ago. W/out a fix I'll have to revert our code base and put back in Email::Simple which is tolerant of these emails.
Subject: 1397598970557.5849015a90cfee9916ffe0fc36f79fab.jcrotty

Message body not shown because it is not plain text.

On Thu Apr 17 11:37:27 2014, holybit wrote: Show quoted text
> Courriel .31 > Perl 5.16.3 > CentOS 6.5 > > The attached email throws following error: > > Found an unparseable chunk in the header text starting at line 4: > Received: from forward1-smtp.messagingengine.com (forward1- > smtp.messagingengine.com [66.111.4.223]) > by mxa.senderscore.net (Postfix) with ESMTP id 440FE140006 > for <fastmailcomp@senderscore.net>; Tue, 15 Apr 2014 15:55:48 > -0600 (MDT) > > I dug around in the code a bit, but can't figure out the exact > problem. The place I work at parses a lot of email in the wild and we > have lots of emails like this one that are failing daily since > switching to Courriel a few days ago. W/out a fix I'll have to revert > our code base and put back in Email::Simple which is tolerant of these > emails.
Can you attach the whole message (or at least all the headers) verbatim? I need to see all the whitespace and such to figure out what's going on.
On Fri Apr 18 23:19:47 2014, DROLSKY wrote: Show quoted text
> On Thu Apr 17 11:37:27 2014, holybit wrote:
> > Courriel .31 > > Perl 5.16.3 > > CentOS 6.5 > > > > The attached email throws following error: > > > > Found an unparseable chunk in the header text starting at line 4: > > Received: from forward1-smtp.messagingengine.com (forward1- > > smtp.messagingengine.com [66.111.4.223]) > > by mxa.senderscore.net (Postfix) with ESMTP id 440FE140006 > > for <fastmailcomp@senderscore.net>; Tue, 15 Apr 2014 15:55:48 > > -0600 (MDT) > > > > I dug around in the code a bit, but can't figure out the exact > > problem. The place I work at parses a lot of email in the wild and we > > have lots of emails like this one that are failing daily since > > switching to Courriel a few days ago. W/out a fix I'll have to revert > > our code base and put back in Email::Simple which is tolerant of > > these > > emails.
> > Can you attach the whole message (or at least all the headers) > verbatim? I need to see all the whitespace and such to figure out > what's going on.
Duh, you already did. Ignore me.
On Thu Apr 17 11:37:27 2014, holybit wrote: Show quoted text
> Courriel .31 > Perl 5.16.3 > CentOS 6.5 > > The attached email throws following error: > > Found an unparseable chunk in the header text starting at line 4: > Received: from forward1-smtp.messagingengine.com (forward1- > smtp.messagingengine.com [66.111.4.223]) > by mxa.senderscore.net (Postfix) with ESMTP id 440FE140006 > for <fastmailcomp@senderscore.net>; Tue, 15 Apr 2014 15:55:48 > -0600 (MDT) > > I dug around in the code a bit, but can't figure out the exact > problem. The place I work at parses a lot of email in the wild and we > have lots of emails like this one that are failing daily since > switching to Courriel a few days ago. W/out a fix I'll have to revert > our code base and put back in Email::Simple which is tolerant of these > emails.
I see the problem. A few of the header lines end with just a newline as opposed to CRLF. I can make Courriel more tolerant of this.
On Fri Apr 18 23:35:28 2014, DROLSKY wrote: Show quoted text
> On Thu Apr 17 11:37:27 2014, holybit wrote:
> > Courriel .31 > > Perl 5.16.3 > > CentOS 6.5 > > > > The attached email throws following error: > > > > Found an unparseable chunk in the header text starting at line 4: > > Received: from forward1-smtp.messagingengine.com (forward1- > > smtp.messagingengine.com [66.111.4.223]) > > by mxa.senderscore.net (Postfix) with ESMTP id 440FE140006 > > for <fastmailcomp@senderscore.net>; Tue, 15 Apr 2014 15:55:48 > > -0600 (MDT) > > > > I dug around in the code a bit, but can't figure out the exact > > problem. The place I work at parses a lot of email in the wild and we > > have lots of emails like this one that are failing daily since > > switching to Courriel a few days ago. W/out a fix I'll have to revert > > our code base and put back in Email::Simple which is tolerant of > > these > > emails.
> > I see the problem. A few of the header lines end with just a newline > as opposed to CRLF. I can make Courriel more tolerant of this.
Yes, the problem is in the folded headers. The last line/chunk of a folded header is EOL CRLF but the others are just LF. Thanks for the fix and release! I'll get this into production Monday AM and get get back to you if I see any other problems ASAP.
.33 fixed EOL problems. All is well and thanks for the update!