diff options
| author | Barry Warsaw | 2009-12-10 22:32:25 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-12-10 22:32:25 -0500 |
| commit | 8938d65327611dded72c7876ffe52e4d4d12ce76 (patch) | |
| tree | 7e2d5c354dd53f1d3f8c42b4a11a9b58b2c2fcb1 /src/mailman/queue/command.py | |
| parent | fbc81f61609ce0504245934d9bed0690fbd331a7 (diff) | |
| download | mailman-8938d65327611dded72c7876ffe52e4d4d12ce76.tar.gz mailman-8938d65327611dded72c7876ffe52e4d4d12ce76.tar.zst mailman-8938d65327611dded72c7876ffe52e4d4d12ce76.zip | |
Diffstat (limited to 'src/mailman/queue/command.py')
| -rw-r--r-- | src/mailman/queue/command.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mailman/queue/command.py b/src/mailman/queue/command.py index d5ce708b1..401730e73 100644 --- a/src/mailman/queue/command.py +++ b/src/mailman/queue/command.py @@ -32,15 +32,17 @@ import re import logging from StringIO import StringIO -from email.Errors import HeaderParseError -from email.Header import decode_header, make_header -from email.Iterators import typed_subpart_iterator +from email.errors import HeaderParseError +from email.header import decode_header, make_header +from email.iterators import typed_subpart_iterator +from zope.component import getUtility from zope.interface import implements from mailman.config import config from mailman.core.i18n import _ from mailman.email.message import Message, UserNotification from mailman.interfaces.command import ContinueProcessing, IEmailResults +from mailman.interfaces.languages import ILanguageManager from mailman.queue import Runner @@ -198,7 +200,7 @@ class CommandRunner(Runner): # Send a reply, but do not attach the original message. This is a # compromise because the original message is often helpful in tracking # down problems, but it's also a vector for backscatter spam. - language = config.languages[msgdata['lang']] + language = getUtility(ILanguageManager)[msgdata['lang']] reply = UserNotification(msg.sender, mlist.bounces_address, _('The results of your email commands'), lang=language) |
