[Mailman-Users] subject filtering

Mark Sapiro msapiro at value.net
Wed Jul 19 17:01:11 CEST 2006


Patrick Bogen wrote:

>On 7/19/06, gtnet at hok.juris.u-szeged.hu <gtnet at hok.juris.u-szeged.hu> wrote:
>> I've tried to put the
>> "subject: .*\*SPAM\*.*" line into the bounce_matching_headers and it
>> gave me an
>> error , i try to translate it to english from hungarian. : "in the bounce
>> matching headers box you must give a valid filter line, unless it will be
>> ignored"
>
>What version of mailman are you running? 2.1.8 doesn't seem to do any
>validation on this field- or, at least, that regex is valid in my
>setup. Perhaps someone else knows more about where this error is
>coming from?


I think Patrick is correct here, but what exactly did you put in
bounce_matching headers. If it is exactly as above, it should be OK.
Also, the '.*' is not really necessary at the beginning and end of the
regexp since the regexp is found anywhere in the header, so you could
use just

subject: \*SPAM\*

and it would be the same.

You may not really want to use bounce_matching_headers since a match
there will cause the message to be held and you may want to discard
it. If you want it discarded, you have to use header_filter_rules.

You may also find it easier to look at a different Spamassassin header
such as the

X-Spam-Flag: Yes

header.


See <http://docs.python.org/lib/re-syntax.html>. Also see
<http://mail.python.org/pipermail/mailman-users/2006-July/052298.html>
for a bit of general information about header_filter_rules.

-- 
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