Message183619
>>> 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 |
|
Date |
User |
Action |
Args |
2013-03-06 22:25:40 | r.david.murray | set | recipients:
+ r.david.murray |
2013-03-06 22:25:40 | r.david.murray | set | messageid: <1362608740.33.0.297004510938.issue17369@psf.upfronthosting.co.za> |
2013-03-06 22:25:40 | r.david.murray | link | issue17369 messages |
2013-03-06 22:25:39 | r.david.murray | create | |
|