This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients barry, r.david.murray, serhiy.storchaka, vajrasky, Łukasz.Kucharski
Date 2014-05-31.16:50:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The Parse class does not throw exception if given invalid message:

Assume /tmp/a.txt contains garbage, such as: "&&&&&"

With this code:

    with open("/tmp/a.txt", "r") as fp:
        msg = email.parser.Parser().parse(fp) # does not throw exception
        print(msg) # => &&&&&
        msg['from'] # => None

It is just you can not get useful information, such as msg['to'].
Date User Action Args
2014-05-31 16:50:26vajraskysetrecipients: + vajrasky, barry, r.david.murray, serhiy.storchaka, Łukasz.Kucharski
2014-05-31 16:50:26vajraskysetmessageid: <>
2014-05-31 16:50:26vajraskylinkissue21476 messages
2014-05-31 16:50:26vajraskycreate