summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-10-07 23:39:43 +0000
committerbwarsaw2002-10-07 23:39:43 +0000
commitc29762b3be06a8bca82d0a410bc8fb184d19dbcd (patch)
treec430c6f75e9e63bae9e2c54a66685d50d77049ed
parent60db4f73ec46cfc46e711999e1c40f2328be6b2b (diff)
downloadmailman-c29762b3be06a8bca82d0a410bc8fb184d19dbcd.tar.gz
mailman-c29762b3be06a8bca82d0a410bc8fb184d19dbcd.tar.zst
mailman-c29762b3be06a8bca82d0a410bc8fb184d19dbcd.zip
When content filtering, we may not always want to just discard the
message. This is especially the case when debugging your filtering rules. To support this we now have a "filter action" which can be Discard, Reject, Forward to Admin, Preserve on disk. InitVars(): Set the default filter action.
-rw-r--r--Mailman/MailList.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 0cab055d2..de2962483 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -320,6 +320,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
self.filter_content = mm_cfg.DEFAULT_FILTER_CONTENT
self.convert_html_to_plaintext = \
mm_cfg.DEFAULT_CONVERT_HTML_TO_PLAINTEXT
+ self.filter_action = mm_cfg.DEFAULT_FILTER_ACTION
# Analogs to these are initted in Digester.InitVars
self.nondigestable = mm_cfg.DEFAULT_NONDIGESTABLE
self.personalize = 0