[issue14925] email package does not register defect when blank line between header and body is missing

R. David Murray report at bugs.python.org
Sun May 27 17:25:30 CEST 2012


New submission from R. David Murray <rdmurray at bitdance.com>:

The error recovery heuristic the parser uses is that if it sees a line with no leading whitespace and no ':' in it, it assumes that the blank line between the headers and the body was missing.  It does not, however, register defect for this case.

Attached is a patch.  It introduces a new Defect and deprecates an old one that could never have been issued, so I'm not going to back port it.  (Especially seeing as no one has ever complained about it...I found the bug through code inspection.)

----------
assignee: r.david.murray
components: email
files: bodyseparator.patch
keywords: patch
messages: 161708
nosy: barry, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: email package does not register defect when blank line between header and body is missing
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file25732/bodyseparator.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14925>
_______________________________________


More information about the Python-bugs-list mailing list