[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread R. David Murray
R. David Murray added the comment: Also, issue 7082 might be relevant here, since it fixed a bug in this fix. -- ___ Python tracker ___ ___

[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread R. David Murray
R. David Murray added the comment: Ich, if your problem still exists in 2.7, 3.1, or 3.2, please open a new issue with a test case showing the problem you are running in to. -- nosy: +r.david.murray ___ Python tracker

[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread Ich Neumon
Ich Neumon 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 to the double-quote

[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread Ich Neumon
Ich Neumon 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