This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author msapiro
Recipients
Date 2006-03-06.04:10:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
given the following input:

Received: by main.example.com; Sun Nov  4 02:45:50 2001
X-From_: postmaster@example.com  Sun Nov  4 02:45:50 2001
>From bob  Sun Nov  4 02:45:50 2001
Return-Path: <postmaster@example.com>
Delivered-To: bob@example.com

followed by more headers and message body, the email
3.0+ parser parses everything beginning with the

>From bob  Sun Nov  4 02:45:50 2001

line as the body of the message with only the first two
lines as the header. RFC 2822 is clear that the message
headers are separated from the body by an empty line,
so I think the parser should continue parsing
everything as headers until an empty line or the end of
input is encountered, and should consider lines such as

>From bob  Sun Nov  4 02:45:50 2001

or

Some arbitrary text

encountered in the headers to be MalformedHeaderDefect.
A complete example message is atteched.
History
Date User Action Args
2007-08-23 14:38:14adminlinkissue1443866 messages
2007-08-23 14:38:14admincreate