martinrusev / imbox

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

Fix for attachments with long file names #185

Closed tarx1234 closed 4 years ago

tarx1234 commented 4 years ago

When an attachment has a long file name, there will be multiple dispositions with parameters named file name (for example: filename0, filename1 etc). The current code, first saves the filename correctly but then overwrites it with every filename* property. I propose concatenating instead of overwriting.