[New-bugs-announce] [issue12515] The email package modifies the message structure (when the parsed email is invalid)

xavierd report at bugs.python.org
Thu Jul 7 18:37:22 CEST 2011


New submission from xavierd <xdelannoy at cloudmark.com>:

the function 'email.message_from_file' modifies the message structure when the parsed is invalid (for example, when a closed boudary is missing). The attribute defects is also empty

In the attachment (sample.tgz) you will find:
   - orig.eml : an email with an invalid structure The boundary
"000101020201080900040301" isn't closed
   - after_parsing.eml: same email after calling email.message_from_file()
The boundary is now closed. And the defects attribute is empty
   - test.py: python script to reproduce.

----------
components: None
files: sample.tgz
messages: 139982
nosy: r.david.murray, xavierd
priority: normal
severity: normal
status: open
title: The email package modifies the message structure (when the parsed email is invalid)
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file22606/sample.tgz

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


More information about the New-bugs-announce mailing list