summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Replybot.py
diff options
context:
space:
mode:
authorbwarsaw2002-02-11 23:27:37 +0000
committerbwarsaw2002-02-11 23:27:37 +0000
commit455faeae81a32aa5c683eef79e3d6fcff7ad3b8c (patch)
tree3034299d45247faaf000a3533065c876fe3eb8ff /Mailman/Handlers/Replybot.py
parent50ece8c403b0e860a733ae3046926bbf85199cfa (diff)
downloadmailman-455faeae81a32aa5c683eef79e3d6fcff7ad3b8c.tar.gz
mailman-455faeae81a32aa5c683eef79e3d6fcff7ad3b8c.tar.zst
mailman-455faeae81a32aa5c683eef79e3d6fcff7ad3b8c.zip
process(), hold_for_approval(), do_discard(): When creating the
UserNotification message object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
Diffstat (limited to 'Mailman/Handlers/Replybot.py')
-rw-r--r--Mailman/Handlers/Replybot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/Replybot.py b/Mailman/Handlers/Replybot.py
index 7e3a3be4b..30217211a 100644
--- a/Mailman/Handlers/Replybot.py
+++ b/Mailman/Handlers/Replybot.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000,2001,2002 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
@@ -90,7 +90,7 @@ def process(mlist, msg, msgdata):
# Wrap the response.
text = Utils.wrap(text)
outmsg = Message.UserNotification(sender, mlist.GetAdminEmail(),
- subject, text)
+ subject, text, mlist.preferred_language)
outmsg['X-Mailer'] = _('The Mailman Replybot')
# prevent recursions and mail loops!
outmsg['X-Ack'] = 'No'