mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

Detected file name contains same value twice. #180

Open pudo opened 6 years ago

pudo commented 6 years ago

If I have an email with this somewhat exotic MIME header format (generated by readpst/libpst):

----boundary-LibPST-iamunique-1911708934_-_-
Content-Type: application/pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename*=utf-8''E-ticket%20-%20Turkish%20Airlines.pdf;
        filename="E-ticket - Turkish Airlines.pdf"

The detected file name is E-ticket - Turkish Airlines.pdfE-ticket - Turkish Airlines.pdf. Is there a known fix for this?