diff options
| author | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
| commit | ae3d0cc316b826b8325507d960ccf84da601c3b0 (patch) | |
| tree | 3485e2ca463c2131a0ffb1693bc60d569cc9d8b7 /mailman/pipeline/replybot.py | |
| parent | a3f7d07c62b2f7d6ac9d0b700883826c2838db60 (diff) | |
| download | mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.gz mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.zst mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.zip | |
Diffstat (limited to 'mailman/pipeline/replybot.py')
| -rw-r--r-- | mailman/pipeline/replybot.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mailman/pipeline/replybot.py b/mailman/pipeline/replybot.py index ee0894d12..e24777774 100644 --- a/mailman/pipeline/replybot.py +++ b/mailman/pipeline/replybot.py @@ -17,21 +17,25 @@ """Handler for auto-responses.""" +from __future__ import absolute_import, unicode_literals + __metaclass__ = type -__all__ = ['Replybot'] +__all__ = [ + 'Replybot', + ] import time import logging import datetime -from string import Template from zope.interface import implements from mailman import Message from mailman import Utils from mailman.i18n import _ from mailman.interfaces.handler import IHandler +from mailman.utilities.string import expand log = logging.getLogger('mailman.error') @@ -97,7 +101,7 @@ def process(mlist, msg, msgdata): else: rtext = mlist.autoresponse_postings_text # Interpolation and Wrap the response text. - text = Utils.wrap(Template(rtext).safe_substitute(d)) + text = Utils.wrap(expand(rtext, d)) outmsg = Message.UserNotification(sender, mlist.bounces_address, subject, text, mlist.preferred_language) outmsg['X-Mailer'] = _('The Mailman Replybot') |
