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 Matthieu Pepin
Recipients Matthieu Pepin, barry, r.david.murray
Date 2015-11-16.21:48:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447710480.65.0.915044845124.issue25640@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2015-11-16 21:48:00Matthieu Pepinsetrecipients: + Matthieu Pepin, barry, r.david.murray
2015-11-16 21:48:00Matthieu Pepinsetmessageid: <1447710480.65.0.915044845124.issue25640@psf.upfronthosting.co.za>
2015-11-16 21:48:00Matthieu Pepinlinkissue25640 messages
2015-11-16 21:48:00Matthieu Pepincreate