[Mailman-Users] How to discard spam without review

Dan Mick Dan.Mick at West.Sun.COM
Sat Dec 16 01:06:44 CET 2000

Edit SpamDetect.py; here's what I've added; the syslog stuff is
just for my personal edification; you could merely make the 
analagous changes to KNOWN_SPAMMERS and have the effect you want.

> from Mailman.Logging.Syslog import syslog
> KNOWN_SPAMMERS = [('from', 'danyb at earthlink.net'), ('from', 
'dannyb at dannybproductions.com'), ('from', 'events at dannybproductions.com')]
>             syslog("bounce", "message discarded: %s: %s" % (header, regex))

> This doesn't seem to be in the FAQ, and I'll bet there's a simple way to do
> it.
> I have a class of messages sent to one of the lists I manage.  I classify
> this class of messages as spam based on subject line.  I want to
> automatically discard those messages without even having to review them.
> Standard handling seems to always require a review by the list owner.
> Surely there must be an automated way of discarding these messages without
> waking me up?

More information about the Mailman-Users mailing list