diff options
| author | bwarsaw | 2000-07-22 02:11:48 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-07-22 02:11:48 +0000 |
| commit | 661d6c8e6312c71e251493039a60e800f754be84 (patch) | |
| tree | 9e7f99d5318fd437dfbe545623fde2b49d23a259 | |
| parent | 16c5e1db502df69d3000c384fd29c1ca137dbc7c (diff) | |
| download | mailman-661d6c8e6312c71e251493039a60e800f754be84.tar.gz mailman-661d6c8e6312c71e251493039a60e800f754be84.tar.zst mailman-661d6c8e6312c71e251493039a60e800f754be84.zip | |
| -rw-r--r-- | Mailman/Handlers/Replybot.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Handlers/Replybot.py b/Mailman/Handlers/Replybot.py index 174989100..f4b204791 100644 --- a/Mailman/Handlers/Replybot.py +++ b/Mailman/Handlers/Replybot.py @@ -33,9 +33,10 @@ def process(mlist, msg, msgdata): return # # Check to see if the list is even configured to autorespond to this email - # message. Note: the mailowner script sets the `toadmin' key, and the - # mailcmd script sets the `torequest' key. - toadmin = msgdata.get('toadmin') + # 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. + toadmin = msgdata.get('toadmin', msgdata.get('toowner')) torequest = msgdata.get('torequest') if ((toadmin and not mlist.autorespond_admin) or (torequest and not mlist.autorespond_requests) or \ @@ -67,6 +68,7 @@ def process(mlist, msg, msgdata): 'listurl' : mlist.GetScriptURL('listinfo'), 'requestemail': mlist.GetRequestEmail(), 'adminemail' : mlist.GetAdminEmail(), + 'owneremail' : mlist.GetOwnerEmail(), }) if toadmin: text = mlist.autoresponse_admin_text % d |
