[Mailman-Users] Quick question about spam filtering

Mark Sapiro msapiro at value.net
Fri Apr 27 18:31:44 CEST 2007

Jason LaMar 
>In the spam filtering interface, what would be the easiest regex combination
>to ensure that, as an example, listname at whatever.com would automatically
>discard any "self-addressed" messages in this manner?

In header_filter_rules, put the following regexp.

^from:.*\slistname at whatever\.com\s

This will match a header beginning with From: (these regexps are
matched case insensitively) followed by anything followed by the
whitespace delimited email address.

See <http://docs.python.org/lib/re-syntax.html>.

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list