[ python-Bugs-1347874 ] FeedParser does not comply with RFC2822
SourceForge.net
noreply at sourceforge.net
Fri Nov 4 03:58:49 CET 2005
Bugs item #1347874, was opened at 2005-11-04 02:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1347874&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Julian Phillips (quantumfyre)
Assigned to: Nobody/Anonymous (nobody)
Summary: FeedParser does not comply with RFC2822
Initial Comment:
FeedParser (from Lib/email/FeedParser.py) uses
the regular expression:
^(From |[\041-\071\073-\176]{2,}:|[\t ])
to recognise Mail headers. However RFC2822
says:
field-name := 1*ftext
which would give the regular expression:
^(From |[\041-\071\073-\176]{1,}:|[\t ])
This causes mails that use single character
header field names to be parsed incorrectly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1347874&group_id=5470
More information about the Python-bugs-list
mailing list