Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Simple CPAN distribution.

Report information
The Basics
Id: 6771
Status: resolved
Priority: 0/
Queue: Email-Simple

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: Very long "From" headers wrapped erroneously
Email::Simple is wrapping long "From" headers, causing the resulting mailbox to be malformed. earle@mythix:~/Mail$ head -4 long_from From subgenius-return-28831-earle=mythix.realprogrammers.com@armchair.mb.ca Mon Jun 14 12: 05:17 2004 Received: from 206-45-126-224.static.mts.net ([206.45.126.224] helo=onramp.armchair.mb.ca) by mythix.realprogrammers.com with smtp (Exim 4.32 #1 (Debian)) id 1BZpHA-0007jh-4y for earle@mythix.realprogrammers.com; earle@mythix:~/Mail$ perl -MEmail::Simple -e 'my $m = Email::Simple->new(do {local $/; <>}); print $m->as_string' long_from From subgenius-return-28831-earle=mythix.realprogrammers.com@armchair.mb.ca Mon Jun 14 12: 05:17 2004 Received: from 206-45-126-224.static.mts.net ([206.45.126.224] helo=onramp.armchair.mb.ca) by mythix.realprogrammers.com with smtp (Exim 4.32 #1 (Debian)) id 1BZpHA-0007jh-4y for earle@mythix.realprogrammers.com; Mon, 14 Jun 2004 12:05:17 +0100 [snip]
Date: Mon, 28 Jun 2004 22:13:59 +0100
From: Simon Cozens <simon [...] simon-cozens.org>
To: via RT <bug-Email-Simple [...] rt.cpan.org>
Subject: Re: [cpan #6771] Very long "From" headers wrapped erroneously
RT-Send-Cc:
via RT: Show quoted text
> Email::Simple is wrapping long "From" headers, causing the resulting mailbox to be malformed.
Please see the documentation: Email::Simple handles only RFC2822 formatted messages. This means you cannot expect it to cope well as the only parser between you and the outside world, say for example when writing a mail filter for invocation from a .forward file (for this we recommend you use Email::Filter anyway). For more information on this issue please consult rt issue 2478 Email::Simple does not handle "From " headers, nor should it. -- "Nuclear war can ruin your whole compile." -- Karl Lehenbauer
[simon@simon-cozens.org - Mon Jun 28 17:13:53 2004]: Show quoted text
> Email::Simple does not handle "From " headers, nor should it.
But Email::Filter should, as the code path that results in this misbehaviour goes through Email::Filter - it's my bad as I pointed at the wrong module in the chain, but the diagnosis I came to with Earle still holds. One of them is fucked. -- Richard Clamp <richardc@unixbeard.net>