[ python-Bugs-1347874 ] FeedParser does not comply with RFC2822
SourceForge.net
noreply at sourceforge.net
Tue Jan 17 07:00:11 CET 2006
Bugs item #1347874, was opened at 2005-11-03 21:58
Message generated for change (Settings changed) made by bwarsaw
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Julian Phillips (quantumfyre)
Assigned to: Barry A. Warsaw (bwarsaw)
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.
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2006-01-17 01:00
Message:
Logged In: YES
user_id=12800
Fixed as suggested.
r42083 in the trunk (Python 2.5)
r42084 in the release24-maint branch (Python 2.4)
----------------------------------------------------------------------
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