[PATCH v2 1/2] python: open messages in binary mode

David Bremner david at tethera.net
Mon Oct 2 04:04:31 PDT 2017


Florian Klink <flokli at flokli.de> writes:

> currently, notmuch's get_message_parts() opens the file in text mode and passes
> the file object to email.message_from_file(fp). In case the email contains
> UTF-8 characters, reading might fail inside email.parser with the following exception:
>

merged series to master. Thanks for the fix. BTW, I noticed the bug only
happens with python3.

d


More information about the notmuch mailing list