summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2001-12-29 07:26:33 +0000
committerbwarsaw2001-12-29 07:26:33 +0000
commita84f4ba51be17958d044d0f8f4998950d67816a0 (patch)
tree6ef9fb592f608ac8ec560ddc5001856b83495c61
parent9386912d6c27f72de267f2008143d62b868b5b16 (diff)
downloadmailman-a84f4ba51be17958d044d0f8f4998950d67816a0.tar.gz
mailman-a84f4ba51be17958d044d0f8f4998950d67816a0.tar.zst
mailman-a84f4ba51be17958d044d0f8f4998950d67816a0.zip
__handlepost(): Slight modification in the way the forwarded message
is composed. Be sure to add a MIME-Version: header and use set_payload() instead of add_payload() to include the forwarded copy.
-rw-r--r--Mailman/ListAdmin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index ec27012c9..69b4d5862 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -284,8 +284,9 @@ class ListAdmin:
fmsg = Message.UserNotification(addr,
self.GetAdminEmail(),
_('Forward of moderated message'))
- fmsg.add_header('Content-Type', 'message/rfc822')
- fmsg.add_payload(copy)
+ fmsg['Content-Type'] = 'message/rfc822'
+ fmsg['MIME-Version'] = '1.0'
+ fmsg.set_payload(copy)
fmsg.send(self)
# Log the rejection
if rejection: