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.

Title: FeedParser does not comply with RFC2822
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, quantumfyre
Priority: normal Keywords:

Created on 2005-11-04 02:58 by quantumfyre, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26796 - (view) Author: Julian Phillips (quantumfyre) Date: 2005-11-04 02:58
FeedParser (from Lib/email/ uses  
the regular expression: 
^(From |[\041-\071\073-\176]{2,}:|[\t ])   
to recognise Mail headers.  However RFC2822   
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. 
msg26797 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2006-01-17 06:00
Logged In: YES 

Fixed as suggested.

r42083 in the trunk (Python 2.5)
r42084 in the release24-maint branch (Python 2.4)
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42551
2005-11-04 02:58:48quantumfyrecreate