From 455faeae81a32aa5c683eef79e3d6fcff7ad3b8c Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 11 Feb 2002 23:27:37 +0000 Subject: 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. --- Mailman/Handlers/Moderate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Mailman/Handlers/Moderate.py') diff --git a/Mailman/Handlers/Moderate.py b/Mailman/Handlers/Moderate.py index de19e3c5d..8395cf88b 100644 --- a/Mailman/Handlers/Moderate.py +++ b/Mailman/Handlers/Moderate.py @@ -135,7 +135,8 @@ def do_discard(mlist, msg): mlist.GetScriptURL('admin', absolute=1) nmsg = Message.UserNotification(mlist.GetOwnerEmail(), mlist.GetAdminEmail(), - _('Auto-discard notification')) + _('Auto-discard notification'), + mlist.preferred_language) nmsg['Content-Type'] = 'multipart/mixed' nmsg['MIME-Version'] = '1.0' text = MIMEText(Utils.wrap(_("""\ -- cgit v1.2.3-70-g09d2