From a062cbd70cf8c2de5ff48a575db8b5d483c8866c Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 1 Apr 2002 19:07:48 +0000 Subject: __handlepost(): Fix the composition of the forwarded message, so that the copy of the Message instance doesn't get passed to UserNotification's constructor via the `text' argument. Instead, it should get attached via set_payload() after the Content-Type: is set to message/rfc822. Bug reported by Ron Jarrell. --- Mailman/ListAdmin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index e1eb89425..867ea3ecd 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -324,10 +324,11 @@ class ListAdmin: fmsg = Message.UserNotification( addr, self.GetBouncesEmail(), _('Forward of moderated message'), - copy, lang) + lang=lang) finally: i18n.set_translation(otrans) fmsg.set_type('message/rfc822') + fmsg.set_payload(copy) fmsg.send(self) # Log the rejection if rejection: -- cgit v1.2.3-70-g09d2