pyzmail
pyzmail copied to clipboard
Attachment with encoded filename
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