aspineux / pyzmail

Pyzmail is a high level mail library for Python, providing functions to read, compose and send emails
60 stars 31 forks source link

Attachment with encoded filename #17

Open georgUSA opened 6 years ago

georgUSA commented 6 years ago

I recently implented an email project with pyzMail and it worked well.

We did run into one problem with an email that contained the following:

Content-Disposition: attachment;
    filename="=?windows-1252?Q?Beleg_Georg_Steinh=E4u=DFer=2EPDF?="

I dont know how common these encoded filenames are and I understand there a quite a few RFC covering attachment filename options. I programmed around it in python by parsing the string and using binascii.unhexlify()

Wanted to bring it to your attention.

Thanks,

George