martinrusev / imbox

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

Base64 decode param and recognize single file mails as attachment #224

Closed engelant closed 2 years ago

engelant commented 2 years ago

While decode_param() checks for base64 encodig, it actually never was decoded. Works at least for my limited test cases.

Also I encountered messages, which are not multipart and consist only of an attachment. I handled that for application/pdf files. It could be possible to allow a lot more types (or just make an unconditional else), but I'm not certain.