pyzmail icon indicating copy to clipboard operation
pyzmail copied to clipboard

Attachment with encoded filename

Open georgUSA opened this issue 7 years ago • 0 comments

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

georgUSA avatar Mar 02 '18 20:03 georgUSA