summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/replybot.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 09:36:52 -0400
committerBarry Warsaw2016-03-25 09:36:52 -0400
commitb9c06627e46ff1e9f09965228ab3b48f217109af (patch)
treea600fa04dd2ac6d006b88aee2c5e605673629fa3 /src/mailman/handlers/replybot.py
parent49d630f2761175e404f3b1d811e61bc43eb6b25b (diff)
downloadmailman-b9c06627e46ff1e9f09965228ab3b48f217109af.tar.gz
mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.tar.zst
mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.zip
Diffstat (limited to 'src/mailman/handlers/replybot.py')
-rw-r--r--src/mailman/handlers/replybot.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/mailman/handlers/replybot.py b/src/mailman/handlers/replybot.py
index 0302d2793..546bb1ec4 100644
--- a/src/mailman/handlers/replybot.py
+++ b/src/mailman/handlers/replybot.py
@@ -17,13 +17,9 @@
"""Handler for automatic responses."""
-__all__ = [
- 'Replybot',
- ]
-
-
import logging
+from mailman import public
from mailman.core.i18n import _
from mailman.email.message import UserNotification
from mailman.interfaces.autorespond import (
@@ -39,7 +35,7 @@ from zope.interface import implementer
log = logging.getLogger('mailman.error')
-
+@public
@implementer(IHandler)
class Replybot:
"""Send automatic responses."""
@@ -101,12 +97,13 @@ class Replybot:
'Auto-response for your message to the "$display_name" '
'mailing list')
# Do string interpolation into the autoresponse text
- d = dict(list_name = mlist.list_name,
- display_name = display_name,
- listurl = mlist.script_url('listinfo'),
- requestemail = mlist.request_address,
- owneremail = mlist.owner_address,
- )
+ d = dict(
+ list_name=mlist.list_name,
+ display_name=display_name,
+ listurl=mlist.script_url('listinfo'),
+ requestemail=mlist.request_address,
+ owneremail=mlist.owner_address,
+ )
# Interpolation and Wrap the response text.
text = wrap(expand(response_text, d))
outmsg = UserNotification(msg.sender, mlist.bounces_address,