Unable to set default header filter (new style)

Bug #266295 reported by Magdan
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

As I am working on setting up a multilist/multidomain
setup using
Mailman 2.1.6, I encountered the need that I wanted to
be able to set the
default header filter rules so that the lists I create
will all have the same
basic rule (since we concluded we want one as default).
It proved to be a
fairly small hack, so I thought I contribute it to you.

diff MailList.py.orig MailList.py
342c342,343
< self.header_filter_rules = []
---
> self.header_filter_rules = \
> mm_cfg.DEFAULT_HEADER_FILTER_RULES

diff Defaults.py.orig Defaults.py
908a909,918
> # New style SPAM Privacy header filtering
> # Mailman can match the patterns of header content
and decide upon different
> # actions (Defer, Hold, Reject Discard and Accept).
These properties is
> # configured per list, and here can the list default
be set.
> # A list of rules where each entry contains the
matching string, the action
> # code and an empty flag (set False).
> # Example (discard mails marked by SpamAssassin):
> #DEFAULT_HEADER_FILTER_RULES = [('X-Spam-Status:
Yes', DISCARD, False)]
> DEFAULT_HEADER_FILTER_RULES = []
>

OK, it certainly could be cleaned up in the aspect of
comments/documentation,
but it should be the trivia part for you guys. It has
been tested to work.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1394892&group_id=103&atid=100103]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.