Update of /cvsroot/mailman/mailman/Mailman/Queue
In directory usw-pr-cvs1:/tmp/cvs-serv5395

Modified Files:
        CommandRunner.py 
Log Message:
_dispose(): When a message is destined "toowner" and the metadata
contains the "tomoderators" key, sent the message to both the list
owners and the list moderators.


Index: CommandRunner.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Queue/CommandRunner.py,v
retrieving revision 2.3
retrieving revision 2.4
diff -C2 -r2.3 -r2.4
*** CommandRunner.py    2001/05/11 20:11:17     2.3
--- CommandRunner.py    2001/05/31 17:32:03     2.4
***************
*** 76,79 ****
--- 76,87 ----
              # 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.
***************
*** 120,126 ****
                  # back to the owners address so bounce loops can be broken, as
                  # per the code above.
                  virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR)
                  virginq.enqueue(msg, msgdata,
!                                 recips = mlist.owner,
                                  errorsto = mlist.GetOwnerEmail(),
                                  noack = 0         # enable Replybot
--- 128,137 ----
                  # 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 = recips,
                                  errorsto = mlist.GetOwnerEmail(),
                                  noack = 0         # enable Replybot


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to