summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsapiro2006-05-17 03:09:23 +0000
committermsapiro2006-05-17 03:09:23 +0000
commitfaa8b0fa87ab3bf276154f9a932055a3af3321ff (patch)
treed13f0c943f6ac4623bd35fab4bab61d77d38aa42
parent788d35ff6c31e96069e157a09163bb3faa0914a4 (diff)
downloadmailman-faa8b0fa87ab3bf276154f9a932055a3af3321ff.tar.gz
mailman-faa8b0fa87ab3bf276154f9a932055a3af3321ff.tar.zst
mailman-faa8b0fa87ab3bf276154f9a932055a3af3321ff.zip
- Cgi/options.py - fixed to not present the "empty" topic to user.
- Handlers/CalcRecips.py - Changed to not process topics if topics are disabled for the list.
-rw-r--r--Mailman/Cgi/options.py2
-rw-r--r--Mailman/Handlers/CalcRecips.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index 2f24c112b..9fb008e6a 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -791,6 +791,8 @@ def options_page(mlist, doc, user, cpuser, userlang, message=''):
if mlist.topics:
table = Table(border="0")
for name, pattern, description, emptyflag in mlist.topics:
+ if emptyflag:
+ continue
quotedname = urllib.quote_plus(name)
details = Link(mlist.GetScriptURL('options') +
'/%s/?VARHELP=%s' % (user, quotedname),
diff --git a/Mailman/Handlers/CalcRecips.py b/Mailman/Handlers/CalcRecips.py
index e5acd23fb..588fcb9ad 100644
--- a/Mailman/Handlers/CalcRecips.py
+++ b/Mailman/Handlers/CalcRecips.py
@@ -91,6 +91,10 @@ delivery. The original message as received by Mailman is attached.
def do_topic_filters(mlist, msg, msgdata, recips):
+ if not mlist.topics_enabled:
+ # MAS: if topics are currently disabled for the list, send to all
+ # regardless of ReceiveNonmatchingTopics
+ return
hits = msgdata.get('topichits')
zaprecips = []
if hits: