New submission from xavierd <xdelan...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue12515> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com