Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeedParser does not comply with RFC2822 #42551

Closed
quantumfyre mannequin opened this issue Nov 4, 2005 · 2 comments
Closed

FeedParser does not comply with RFC2822 #42551

quantumfyre mannequin opened this issue Nov 4, 2005 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@quantumfyre
Copy link
Mannequin

quantumfyre mannequin commented Nov 4, 2005

BPO 1347874
Nosy @warsaw

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/warsaw'
closed_at = <Date 2006-01-17.06:00:10.000>
created_at = <Date 2005-11-04.02:58:48.000>
labels = ['library']
title = 'FeedParser does not comply with RFC2822'
updated_at = <Date 2006-01-17.06:00:10.000>
user = 'https://bugs.python.org/quantumfyre'

bugs.python.org fields:

activity = <Date 2006-01-17.06:00:10.000>
actor = 'barry'
assignee = 'barry'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2005-11-04.02:58:48.000>
creator = 'quantumfyre'
dependencies = []
files = []
hgrepos = []
issue_num = 1347874
keywords = []
message_count = 2.0
messages = ['26796', '26797']
nosy_count = 2.0
nosy_names = ['barry', 'quantumfyre']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1347874'
versions = ['Python 2.4']

@quantumfyre
Copy link
Mannequin Author

quantumfyre mannequin commented Nov 4, 2005

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.

@quantumfyre quantumfyre mannequin closed this as completed Nov 4, 2005
@quantumfyre quantumfyre mannequin assigned warsaw Nov 4, 2005
@quantumfyre quantumfyre mannequin added the stdlib Python modules in the Lib dir label Nov 4, 2005
@quantumfyre quantumfyre mannequin closed this as completed Nov 4, 2005
@quantumfyre quantumfyre mannequin assigned warsaw Nov 4, 2005
@quantumfyre quantumfyre mannequin added the stdlib Python modules in the Lib dir label Nov 4, 2005
@warsaw
Copy link
Member

warsaw commented Jan 17, 2006

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)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant