summaryrefslogtreecommitdiff
path: root/Mailman/Queue/CommandRunner.py
diff options
context:
space:
mode:
authorbwarsaw2001-05-31 17:32:03 +0000
committerbwarsaw2001-05-31 17:32:03 +0000
commitec8c1bc1633d94d596c890e9dc8de4cad6917ee2 (patch)
tree90f041c95dbaa5a7c08e46665eaed7b5f6bf67f7 /Mailman/Queue/CommandRunner.py
parent055abf8655e4f34b488c35cc9a0192913748e734 (diff)
downloadmailman-ec8c1bc1633d94d596c890e9dc8de4cad6917ee2.tar.gz
mailman-ec8c1bc1633d94d596c890e9dc8de4cad6917ee2.tar.zst
mailman-ec8c1bc1633d94d596c890e9dc8de4cad6917ee2.zip
Diffstat (limited to 'Mailman/Queue/CommandRunner.py')
-rw-r--r--Mailman/Queue/CommandRunner.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/Mailman/Queue/CommandRunner.py b/Mailman/Queue/CommandRunner.py
index ed31fba03..e4ece34b9 100644
--- a/Mailman/Queue/CommandRunner.py
+++ b/Mailman/Queue/CommandRunner.py
@@ -75,6 +75,14 @@ class CommandRunner(Runner):
# appears to get a message from a "likely bounce sender" then it
# simply discards the message. BAW: should it save it some place?
#
+ # Note that the <list>-owner alias actually can explode into two
+ # different groups of end-user addresses. Normally, these
+ # addresses include only the mlist.owner addresses, a.k.a. the
+ # list administators. If the message metadata contains the key
+ # 'tomoderators', then this message will also include the
+ # mlist.moderator addresses, a.k.a. the list moderators (who only
+ # have permission to tend to pending requests).
+ #
# <list>-request -- this message is an emailed command, sent to
# the command robot. Pass it on to the command handler.
#
@@ -119,9 +127,12 @@ class CommandRunner(Runner):
# Any messages to the owner address must have Errors-To: set
# back to the owners address so bounce loops can be broken, as
# per the code above.
+ recips = mlist.owner[:]
+ if msgdata.get('tomoderators'):
+ recips.extend(mlist.moderator)
virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR)
virginq.enqueue(msg, msgdata,
- recips = mlist.owner,
+ recips = recips,
errorsto = mlist.GetOwnerEmail(),
noack = 0 # enable Replybot
)