Ich Neumon ichneumo...@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
Ich Neumon ichneumo...@gmail.com added the comment:
A slight update for my workaround for the above with the following code:
if not filename:
ct = part.get(Content-Type)
if ct:
m = re.compile('name=\?(\S+)\?').search(ct, 1)
if m: filename = m.group(1)
I've added ? operators
R. David Murray rdmur...@bitdance.com added the comment:
Also, issue 7082 might be relevant here, since it fixed a bug in this fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1403349