Helmut Schneider wrote: > Mark Sapiro wrote:
>> Helmut Schneider wrote: >>> >>> I have lots of problems with out-of-office replies. I tried to set up >>> a few filter rules using 2.1.10. Unfortuantely they don't catch them. >>> Are the expressions case sensitiv? Are the expressions basic or >>> extended? >>> What I tried yet: >>> >>> ^subject:.*Accepted.* >>> ^subject:.*Declined.* >>> ^subject:.*is out of office.* >> >> >> There are two different filters at # Privacy options... ->Spam filters, >> and they work differently. >> >> The more flexible of the two is header_filter_rules. For >> header_filter_rules the regexps are matched against a multi-line >> string containing all the unfolded headers in the message, both >> message headers and sub-part headers. The regexp is a python regexp >> <http://docs.python.org/library/re.html#regular-expression-syntax> and >> the headers are searched >> <http://docs.python.org/library/re.html#re.search> for a match of the >> regexp in MULTILINE and IGNORECASE mode. This means the '^' matches >> the beginning of the string or the null character immediately >> following a newline and the match is case insensitive. Thus your above >> expressions look good. > >That's weird. Messages still pass with e.g. > >Subject: [Somelist] Declined: Invitation to workshop on 13rd Dec. 2008 > >in the Header. Do I need to escape the colon? Or something else? I just tested a rule with the three regexps ^subject:.*Accepted.* ^subject:.*Declined.* ^subject:.*is out of office.* copied from your post and Action set to Reject, and a message with Subject: [Somelist] Declined: Invitation to workshop on 13rd Dec. 2008 was rejected for matching the rule. Perhaps you didn't set the rule action. Note that Action = Defer does not mean defer the post; it means defer the rule - i.e. don't enforce it. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9