Message114977
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-quotes, and changed the case in the part.get. However, there may be good reasons as to why part.get needs to be case-sensitive. Not my area of expertise though. |
|
Date |
User |
Action |
Args |
2010-08-26 14:01:23 | ichneumon | set | recipients:
+ ichneumon, barry, mpasniew |
2010-08-26 14:01:23 | ichneumon | set | messageid: <1282831283.77.0.10167294232.issue1403349@psf.upfronthosting.co.za> |
2010-08-26 14:01:22 | ichneumon | link | issue1403349 messages |
2010-08-26 14:01:22 | ichneumon | create | |
|