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 brandon-rhodes
Recipients barry, brandon-rhodes, r.david.murray
Date 2014-03-27.17:12:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395940330.14.0.456041860337.issue21079@psf.upfronthosting.co.za>
In-reply-to
Content
Most attachments (in my inbox, at least) specify a filename, and thus
have a Content-Disposition header that looks like:

Content-Disposition: attachment; filename="attachment.gz"

In fact, this sample header was generated by the new add_attachment()
method in Python itself. Unfortunately, the is_attachment property
currently does this test:

c_d.lower() == 'attachment'

Which means that it returns False for almost all attachments in my
email archive. I believe that the test should instead be:

c_d.split(';', 1)[0].lower() == 'attachment'
History
Date User Action Args
2014-03-27 17:12:10brandon-rhodessetrecipients: + brandon-rhodes, barry, r.david.murray
2014-03-27 17:12:10brandon-rhodessetmessageid: <1395940330.14.0.456041860337.issue21079@psf.upfronthosting.co.za>
2014-03-27 17:12:10brandon-rhodeslinkissue21079 messages
2014-03-27 17:12:09brandon-rhodescreate