[issue1403349] in email can't get attachments' filenames using get_filename
report at bugs.python.org
Thu Aug 26 15:37:26 CEST 2010
Ich Neumon <ichneumonad at gmail.com> added the comment:
Looks like this one needs reopening to me... I've recently had to parse out attachments with the following Content-Type lines and no Content-Disposition provided:
Content-Type: application/vnd.ms-excel; name=transactions.xls
It might not seem like much, but the content-type check for this workaround in get_filename appears to be case-sensitive, and thus misses the upper case "T" in Content-Type.
There is no information provided in the headers about the mailer they use, but they get plenty of other bits wrong too (eg. the xls file is actually just tab-separated values).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list