summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Hold.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/Hold.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/Hold.py')
-rw-r--r--Mailman/Handlers/Hold.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index 0f9b2caff..672a5881c 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -217,9 +217,7 @@ def hold_for_approval(mlist, msg, msgdata, exc):
lang = msgdata.get('lang', mlist.getMemberLanguage(sender))
subject = _('Your message to %(listname)s awaits moderator approval')
text = Utils.maketext('postheld.txt', d, lang=lang, mlist=mlist)
- nmsg = Message.UserNotification(sender, adminaddr, subject, text)
- nmsg.add_header('Content-Type', 'text/plain',
- charset=Utils.GetCharSet(lang))
+ nmsg = Message.UserNotification(sender, adminaddr, subject, text, lang)
nmsg.send(mlist)
# Now the message for the list owners. Be sure to include the list
# moderators in this message. This one should appear to come from