Currently, there's no way to apply new filters to current comments. So, if I create a new filter to match a set of spam I've received, I'll then have to go back and manually mark them as spam anyway, instead of the system taking care of it for me.

This feature request stems from discussions in http://drupal.org/node/14332. From that discussion, we agreed that there should be a way to test one or more filters and optionally apply them to the current comments.

I like the idea of being able to select multiple filters to test (and optionally mark as spam). This could be implemented as checkboxes next to the filter with a button/drop-down above or below the list, as done in the mass comment patch with comments.

Comments

jeremy’s picture

Version: » 4.5.x-1.x-dev
Component: User interface » Custom Filters
Assigned: Unassigned » jeremy

I have added initial support for this functionality. On the custom filters page, there is now a "scan" option next to each filter. When clicked, it will scan all comments on your website with that filter. Matching comments will be listed, allowing you to mark them as "spam" or "not spam". I believe it works with both plain text and regex filters, though comprehensive testing would be appreciated. You can view the source changes here. (The new functionality is currently only found in the cvs version of the spam module, which at this time only works with Drupal 4.5.)

Future plans include: a way to mass-mark matching comments as spam or not spam, a way to mass-delete matching comments.

jeremy’s picture

Version: 4.5.x-1.x-dev »

Functionality added in the 4.6 release.

anders.fajerson’s picture