Message254757
Message.is_attachment() throws the exception below:
File "/usr/lib/python3.5/email/message.py", line 956, in is_attachment
return False if c_d is None else c_d.content_disposition == 'attachment'
AttributeError: 'str' object has no attribute 'content_disposition'
It seems to work fine for me with:
return c_d == 'attachment' |
|
Date |
User |
Action |
Args |
2015-11-16 21:48:00 | Matthieu Pepin | set | recipients:
+ Matthieu Pepin, barry, r.david.murray |
2015-11-16 21:48:00 | Matthieu Pepin | set | messageid: <1447710480.65.0.915044845124.issue25640@psf.upfronthosting.co.za> |
2015-11-16 21:48:00 | Matthieu Pepin | link | issue25640 messages |
2015-11-16 21:48:00 | Matthieu Pepin | create | |
|