summaryrefslogtreecommitdiff
path: root/Mailman/versions.py
diff options
context:
space:
mode:
authorcotton1998-10-12 15:59:01 +0000
committercotton1998-10-12 15:59:01 +0000
commit9950422e4337975279b02660e0a599cba8baca3c (patch)
treedd4b633e7a3394490bb54287032f27aca3bcad3d /Mailman/versions.py
parent18680acd0a330b6d743816e74fbd65de1fc91455 (diff)
downloadmailman-9950422e4337975279b02660e0a599cba8baca3c.tar.gz
mailman-9950422e4337975279b02660e0a599cba8baca3c.tar.zst
mailman-9950422e4337975279b02660e0a599cba8baca3c.zip
added adminitrivia filter and an "administrivia" list attribute that
is editable via the admin cgi to turn the filter on and off. I'm sure that the filter could catch more things, but it will have less false positives than majordomo anway :) a listing of the specific changes follows: Defaults.py.in changed data file version and added DEFAULT_ADMINISTRIVIA Utils.py added a function IsAdministrivia(msg) that does the filtering replaced re.sub with string.replace(much faster) in (Un)ObscureEmail. MailList.py: added the config info for the administrivia variable, and made the post method check it if the list has the variable set. versions.py: make new lists have an administrivia variable scott
Diffstat (limited to 'Mailman/versions.py')
-rw-r--r--Mailman/versions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mailman/versions.py b/Mailman/versions.py
index d030f2e3d..83de0fd92 100644
--- a/Mailman/versions.py
+++ b/Mailman/versions.py
@@ -70,6 +70,8 @@ def UpdateOldVars(l, stored_state):
else:
l.subscribe_policy = 2 # admin approval
delattr(l, "open_subscribe")
+ if not hasattr(l, "administrivia"):
+ setatrr(l, "administrivia", mm_cfg.DEFAULT_ADMINISTRIVIA)
# - dropped vars:
# for a in ['archive_retain_text_copy',
# 'archive_update_frequency']: