martinrusev / imbox

Python IMAP for Human beings
MIT License
1.18k stars 188 forks source link

Unknown encoding in mail header will throw an exception instead of trying default encoding #202

Closed kapalex closed 2 years ago

kapalex commented 3 years ago

Caused by parser.py:42, the logger message is not inside the try...except block, so if it fails to parse the attached encoding it will throw the error instead of trying the default encoding (which is the intended functionality).

Will try to provide a pull request soon.

ghost commented 2 years ago

This here can be close now as PR #202 is merged