------------------------------------------------------------
revno: 1198
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Sun 2009-09-13 15:52:21 -0700
message:
  Fixed the auto-responder to treat messages to -confirm, -join, -leave,
  -subscribe and -unsubscribe as requests rather than posts.  Bug #427962.
modified:
  Mailman/Handlers/Replybot.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription.
=== modified file 'Mailman/Handlers/Replybot.py'
--- Mailman/Handlers/Replybot.py	2005-08-27 01:40:17 +0000
+++ Mailman/Handlers/Replybot.py	2009-09-13 22:52:21 +0000
@@ -43,11 +43,12 @@
     if ack <> 'yes' and precedence in ('bulk', 'junk', 'list'):
         return
     # Check to see if the list is even configured to autorespond to this email
-    # message.  Note: the mailowner script sets the `toadmin' or `toowner' key
-    # (which for replybot purposes are equivalent), and the mailcmd script
-    # sets the `torequest' key.
+    # message.  Note: the owner script sets the `toowner' key, and the various
+    # confirm, join, leave, request, subscribe and unsubscribe scripts set the
+    # keys we use for `torequest'.
     toadmin = msgdata.get('toowner')
-    torequest = msgdata.get('torequest')
+    torequest = msgdata.get('torequest') or msgdata.get('toconfirm') or \
+                    msgdata.get('tojoin') or msgdata.get('toleave')
     if ((toadmin and not mlist.autorespond_admin) or
            (torequest and not mlist.autorespond_requests) or \
            (not toadmin and not torequest and not mlist.autorespond_postings)):

=== modified file 'NEWS'
--- NEWS	2009-09-13 21:12:56 +0000
+++ NEWS	2009-09-13 22:52:21 +0000
@@ -8,6 +8,9 @@
 
   Bug Fixes and other patches
 
+    - Fixed the auto-responder to treat messages to -confirm, -join, -leave,
+      -subscribe and -unsubscribe as requests rather than posts.  Bug #427962.
+
     - Configure/make no longer builds Japanese and Korean codecs in
       pythonlib if Python already has them.
 

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to