[issue41010] email.message.EmailMessage.get_body

2021-09-03 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj resolution: -> fixed stage: -> resolved status: open -> closed type: crash -> behavior versions: +Python 3.11 -Python 3.8 ___ Python tracker _

[issue41010] email.message.EmailMessage.get_body

2021-08-14 Thread Andrei Kulakov
Andrei Kulakov added the comment: This issue was fixed by https://github.com/python/cpython/pull/26903 (I confirmed that the error no longer happens with attached file). This can be closed as fixed. -- nosy: +andrei.avk ___ Python tracker

[issue41010] email.message.EmailMessage.get_body

2020-06-17 Thread patrick totzke
New submission from patrick totzke : I am trying to use EmailMessage.get_body() on the attached spam email. Although that message may be malformed, I believe that this method should fail gracefully. To reproduce ``` with open('msg', 'rb') as f: m = email.message_from_binary_file(f, _clas