Message139982
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. |
|
Date |
User |
Action |
Args |
2011-07-07 16:37:22 | xavierd | set | recipients:
+ xavierd, r.david.murray |
2011-07-07 16:37:22 | xavierd | set | messageid: <1310056642.88.0.39667287194.issue12515@psf.upfronthosting.co.za> |
2011-07-07 16:37:22 | xavierd | link | issue12515 messages |
2011-07-07 16:37:22 | xavierd | create | |
|