diff options
author | Mark Sapiro <mark@msapiro.net> | 2009-09-13 15:52:21 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2009-09-13 15:52:21 -0700 |
commit | 3cf944a0c4457ef5b10c12f34327645002995a7b (patch) | |
tree | 0ea638d0d2d69fc466686108e9cdee840485c438 /Mailman/Handlers/Replybot.py | |
parent | e58957d954b69f9c368fccb7141098c7a0741ce0 (diff) | |
download | mailman2-3cf944a0c4457ef5b10c12f34327645002995a7b.tar.gz mailman2-3cf944a0c4457ef5b10c12f34327645002995a7b.tar.xz mailman2-3cf944a0c4457ef5b10c12f34327645002995a7b.zip |
Fixed the auto-responder to treat messages to -confirm, -join, -leave,
-subscribe and -unsubscribe as requests rather than posts. Bug #427962.
Diffstat (limited to 'Mailman/Handlers/Replybot.py')
-rw-r--r-- | Mailman/Handlers/Replybot.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Handlers/Replybot.py b/Mailman/Handlers/Replybot.py index 6cd74ca8..3c9536a0 100644 --- a/Mailman/Handlers/Replybot.py +++ b/Mailman/Handlers/Replybot.py @@ -43,11 +43,12 @@ def process(mlist, msg, msgdata): 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)): |