[Mailman-Users] Wildcard syntax for spam-filtering?

Mark Sapiro mark at msapiro.net
Tue Mar 2 21:28:18 CET 2010


Thomas Gramstad wrote:

>I want to add a spam filter rule that automatically deletes all
>mail from all subdomains of com.br. I have tried the syntaxes
>from: .*@com.br
>and
>from: .*@*.com.br ,
>but neither seems to work.


I'm not sure why the first one doesn't 'work'. it will match

From: me at com.br
From: you at com.brassworks.org
Subject: asking about From: headers and @comobravo

and lots of others. The second is even more liberal if it's not a typo.

Try

  ^From:.*[@.]com\.br($|>)

See <http://docs.python.org/library/re.html#regular-expression-syntax>.

-- 
Mark Sapiro <mark at msapiro.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