On Wed, 10 Aug 2016, Martin Liška wrote: > On 08/10/2016 10:49 PM, Joseph Myers wrote: > > The latest spam bugs have spam attachments as well. I'm not sure if the > > API can delete attachments, but it would be helpful for the script to do > > as much as possible with them (change filenames, descriptions, MIME types, > > mark them as obsolete). > > > > I'm testing this, if it's working I'll install the patch.
Thanks, this script is very useful, some more observations on spam bugs: Attachment filenames can be spammish (e.g. see bug 74852), is it possible to change those to "spam" as well? Although most spam attachments seem to be application/pdf, some are image types and get displayed inline, so changing the MIME type to application/x-spam would be an improvement in those cases. A few spam bugs have URL set to a spam link, so emptying URL in all cases when marking as spam would make sense. -- Joseph S. Myers jos...@codesourcery.com