This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ichneumon
Recipients barry, ichneumon, mpasniew
Date 2010-08-26.14:01:22
SpamBayes Score 8.063899e-05
Marked as misclassified No
Message-id <1282831283.77.0.10167294232.issue1403349@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-08-26 14:01:23ichneumonsetrecipients: + ichneumon, barry, mpasniew
2010-08-26 14:01:23ichneumonsetmessageid: <1282831283.77.0.10167294232.issue1403349@psf.upfronthosting.co.za>
2010-08-26 14:01:22ichneumonlinkissue1403349 messages
2010-08-26 14:01:22ichneumoncreate