Author r.david.murray
Recipients r.david.murray
Date 2013-03-06.22:25:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362608740.33.0.297004510938.issue17369@psf.upfronthosting.co.za>
In-reply-to
Content
>>> m = message_from_string("Content-Disposition: attachment; filename*0*="can't decode this filename")
>>> m.get_filename()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rdmurray/python/p32/Lib/email/message.py", line 752, in get_filename
    return utils.collapse_rfc2231_value(filename).strip()
  File "/home/rdmurray/python/p32/Lib/email/utils.py", line 303, in collapse_rfc2231_value
    return str(rawbytes, charset, errors)
TypeError: str() argument 2 must be str, not None
History
Date User Action Args
2013-03-06 22:25:40r.david.murraysetrecipients: + r.david.murray
2013-03-06 22:25:40r.david.murraysetmessageid: <1362608740.33.0.297004510938.issue17369@psf.upfronthosting.co.za>
2013-03-06 22:25:40r.david.murraylinkissue17369 messages
2013-03-06 22:25:39r.david.murraycreate