summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/admin.py
diff options
context:
space:
mode:
authorbwarsaw2000-04-07 04:48:07 +0000
committerbwarsaw2000-04-07 04:48:07 +0000
commitedcbcfe1fa393c9da71b0af4b16dffc217352993 (patch)
treef2381a6229716a8f72f34adef7e308ea882248dc /Mailman/Cgi/admin.py
parentc61cc5b134139a1dcdf9ffad657be86fb10df7d7 (diff)
downloadmailman-edcbcfe1fa393c9da71b0af4b16dffc217352993.tar.gz
mailman-edcbcfe1fa393c9da71b0af4b16dffc217352993.tar.zst
mailman-edcbcfe1fa393c9da71b0af4b16dffc217352993.zip
Diffstat (limited to 'Mailman/Cgi/admin.py')
-rw-r--r--Mailman/Cgi/admin.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py
index bb692374c..f866cba47 100644
--- a/Mailman/Cgi/admin.py
+++ b/Mailman/Cgi/admin.py
@@ -832,7 +832,7 @@ def ChangeOptions(mlist, category, cgi_info, document):
else:
val = cgi_info[property].value
value = GetValidValue(mlist, property, kind, val, deps)
- if getattr(mlist, property) != value:
+ if getattr(mlist, property) <> value:
# TBD: Ensure that mlist.real_name differs only in letter
# case. Otherwise a security hole can potentially be opened
# when using an external archiver. This seems ad-hoc and
@@ -844,6 +844,13 @@ def ChangeOptions(mlist, category, cgi_info, document):
changed! It must differ from the list's name by case
only.<p>""")
continue
+ # TBD: When turning on usenet->mail gating we want to
+ # automatically catch up the newsgroup otherwise the mailing
+ # list will suddently get flooded. There should be a much
+ # better way to do this (or for the admin to specify they want
+ # this).
+ elif property == 'gateway_to_mail':
+ mlist.usenet_watermark = None
setattr(mlist, property, value)
dirty = 1
#