[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-17 Thread xavierd
Changes by xavierd : Added file: http://bugs.python.org/file22919/orig.eml ___ Python tracker <http://bugs.python.org/issue12515> ___ ___ Python-bugs-list mailin

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-17 Thread xavierd
Changes by xavierd : Removed file: http://bugs.python.org/file22887/email.patch ___ Python tracker <http://bugs.python.org/issue12515> ___ ___ Python-bugs-list mailin

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-17 Thread xavierd
xavierd added the comment: I also noticed that 'email' modifies the message structure when the header/body separator is missing. And nothing is added to the defect list. In the attachment, you'll find : - email.patch: this patch add the following error to the defects list :

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-12 Thread xavierd
xavierd added the comment: with the patch applied: {{{ $ ./test.py PARSER INVALID EMAIL defects found ! [] }}} -- Added file: http://bugs.python.org/file22889/test.py ___ Python tracker <http://bugs.python.org/issue12

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-12 Thread xavierd
Changes by xavierd : Added file: http://bugs.python.org/file22888/orig.eml ___ Python tracker <http://bugs.python.org/issue12515> ___ ___ Python-bugs-list mailin

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-12 Thread xavierd
xavierd added the comment: This patch does: - when a close boundary isn't found then the error 'email.errors.CloseBoundaryNotFoundDefect' is added to the defects list. - it doesn't modify the current behaviour of the feedparser (eg: the function email.message_from_fil

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

2011-07-07 Thread xavierd
New submission from xavierd : 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 ema