Patch to help report spam in moderator queue

Bug #266873 reported by Rossigee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

You're moderating one of your lists, looking at the 'admindbsummary' page.
You're already ticked 'accept' to all the non-spam entries and clicked
submit. You're now left with a queue consisting only of spam.

Some days, you feel calm and rational and just delete the rest using the
handy 'discard all deferred' tickboxes and move on. Other times, you have
spam-rage and feel frustrated that it's not trivial to forward all this
spam on to a reporting service, such as Spamcop or Knujon (or whatever else
comes along) and help those who do have more time and resources to hunt
down and shut down these trouble makers. The problem is that you'd have to go
through the list, ticking 'forward to' and cutting'n'pasting your spam
submission address(es) in for the whole list manually before you can submit
it.

One solution would be to add another tickbox like 'report all deferred' and
do some server-side patching to act on the tickbox. A quicker (dirtier?)
solution is just to add a few lines of Javascript to the 'admindbsummary'
page to automate the task client-side. I added the following to the
template on my home server:

<script type="text/javascript"><!--
function sendspamto() {
 email = document.getElementById("fwdspamto").value;
 for (elnum in document.forms[1].elements) {
  elem = document.forms[1].elements[elnum];
  name = elem.name;
  if(name.substr(0, 14) == 'senderforward-') {
   elem.checked = true;
  }
  if(name.substr(0, 16) == 'senderforwardto-') {
   elem.value = email;
  }
 }
}
--></script>
<form method="GET" action="javascript: sendspamto(); return false;">
<p><b>Forward spam</b> to : <input id="fwdspamto"
<email address hidden>"/> <input type="submit" value="Set"
onclick="sendspamto()"/></p>
</form>

If someone wants to take the above, polish it or whatever and use it in
upstream mailman that'd make my (and probably a few thousands other
moderators) lives a little easier :)

Otherwise, please feel free to put it in the FAQ for others to use as they
wish.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1897575&group_id=103&atid=350103]

Debra Virden (teddydlv)
description: updated
Revision history for this message
mc0e (xgcsufw02) wrote :

I think something like this would be a very useful feature, but it would be better to have an action which identifies emails as spam, and passes them to a configured handler on the server. Besides reporting to spamcop et. al., it'd be useful to be able to use the moderator actions to train a local bayesian filter.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.