[New-bugs-announce] [issue11932] Email multipart boundary detection fails on a wrapped header

David Strauss report at bugs.python.org
Wed Apr 27 05:49:17 CEST 2011


New submission from David Strauss <david at davidstrauss.net>:

I've attached a multipart message produced by Thunderbird. For some reason, the email.message parser doesn't properly recognize the boundary. This causes legitimate multipart messages to parse as if no boundary were specified. Simply removing the newline on the line starting with " boundary" allows it to parse correctly.

To see why this is valid, refer to section 2.2.3 of RFC2822 [1].

[1] http://tools.ietf.org/html/rfc2822#section-2.2.3

----------
components: Library (Lib)
files: wrapped_multipart.txt
messages: 134523
nosy: davidstrauss
priority: normal
severity: normal
status: open
title: Email multipart boundary detection fails on a wrapped header
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file21789/wrapped_multipart.txt

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


More information about the New-bugs-announce mailing list