summaryrefslogtreecommitdiff
path: root/Mailman/Defaults.py.in
diff options
context:
space:
mode:
authorcotton1998-10-12 15:59:01 +0000
committercotton1998-10-12 15:59:01 +0000
commit9950422e4337975279b02660e0a599cba8baca3c (patch)
treedd4b633e7a3394490bb54287032f27aca3bcad3d /Mailman/Defaults.py.in
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/Defaults.py.in')
-rw-r--r--Mailman/Defaults.py.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index 4307298c4..7dce4fce6 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -184,6 +184,8 @@ DEFAULT_AUTOMATIC_BOUNCE_ACTION = 1
# get in 1 hour.
DEFAULT_MAX_POSTS_BETWEEN_BOUNCES = 5
+DEFAULT_ADMINISTRIVIA = 1
+
#
# how long the cookie authorizing administrative
# changes via the admin cgi lasts
@@ -195,6 +197,8 @@ ADMIN_COOKIE_LIFE = 60 * 20 # 20 minutes
#
ADMIN_MEMBER_CHUNKSIZE = 10
+
+
# These directories are used to find various important files in the Mailman
# installation. PREFIX and EXEC_PREFIX are set by configure and should point
# to the installation directory of the Mailman package.
@@ -250,4 +254,4 @@ PRIVATE_ARCHIVE_FILE_DIR = os.path.join(PREFIX, 'archives/private')
VERSION = '@VERSION@'
# Data file version number
-DATA_FILE_VERSION = 5
+DATA_FILE_VERSION = 6