diff options
author | tkikuchi <> | 2004-10-10 13:00:03 +0000 |
---|---|---|
committer | tkikuchi <> | 2004-10-10 13:00:03 +0000 |
commit | 8ce66b056a968d1fe7ec739173b076c8c066ffc3 (patch) | |
tree | e146fd234d394b8192e403f8c17700cd074f2c48 /Mailman | |
parent | 094f0bf75123ad379bf546708e22367ce4bb1be2 (diff) | |
download | mailman2-8ce66b056a968d1fe7ec739173b076c8c066ffc3.tar.gz mailman2-8ce66b056a968d1fe7ec739173b076c8c066ffc3.tar.xz mailman2-8ce66b056a968d1fe7ec739173b076c8c066ffc3.zip |
proper lang data is set in msg['data']
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Queue/CommandRunner.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/Queue/CommandRunner.py b/Mailman/Queue/CommandRunner.py index d4d5c5b3..2bb3bd4a 100644 --- a/Mailman/Queue/CommandRunner.py +++ b/Mailman/Queue/CommandRunner.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2004 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -170,7 +170,7 @@ To obtain instructions, send a message containing just the word "help". resp.append(_('\n- Done.\n\n')) # Encode any unicode strings into the list charset, so we don't try to # join unicode strings and invalid ASCII. - charset = Utils.GetCharSet(self.mlist.preferred_language) + charset = Utils.GetCharSet(self.msgdata['lang']) encoded_resp = [] for item in resp: if isinstance(item, UnicodeType): @@ -186,13 +186,13 @@ To obtain instructions, send a message containing just the word "help". # BAW: We wait until now to make this decision since our sender may # not be self.msg.get_sender(), but I'm not sure this is right. recip = self.returnaddr or self.msg.get_sender() - if not self.mlist.autorespondToSender(recip): + if not self.mlist.autorespondToSender(recip, self.msgdata['lang']): return msg = Message.UserNotification( recip, self.mlist.GetBouncesEmail(), _('The results of your email commands'), - lang=self.mlist.preferred_language) + lang=self.msgdata['lang']) msg.set_type('multipart/mixed') msg.attach(results) orig = MIMEMessage(self.msg) |