[Mailman-Users] Filtering Email Marked SPAM
Lawrence Bowie
ldb at freestandards.org
Sat Apr 29 18:53:13 CEST 2006
Mark Sapiro wrote:
> Lawrence Bowie wrote:
>
>> What is the easist way to globally filter email marked SPAM?
>
> Assuming you mean in Mailman, use the KNOWN_SPAMMERS list in mm_cfg.py,
> e.g.
>
> KNOWN_SPAMMERS = [('subject', '^.*spam'), ('x-spam-flag', 'yes')]
>
> This is a list of tuples of (header, regexp) where header is the name
> of a header and regexp is a pattern to search the contents of the
> header. These are case insensitive. Any match will discard the message.
>
> But, why not have whatever process marks the message as spam discard it.
>
Good quesiton ... I like to see some of the SPAM to understand patterns. :)
Thanks Mark,
LDB
More information about the Mailman-Users
mailing list