aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2014-05-17 10:45:30 -0700
committerMark Sapiro <mark@msapiro.net>2014-05-17 10:45:30 -0700
commit162234d13d13817514fc47c7422191dfd8b73ec9 (patch)
tree92e0b51d0e96a3f8145e33c98165772eddae85a9 /Mailman/Handlers
parent8b03576a41b082df803bb0696af9eb440ff219f4 (diff)
downloadmailman2-162234d13d13817514fc47c7422191dfd8b73ec9.tar.gz
mailman2-162234d13d13817514fc47c7422191dfd8b73ec9.tar.xz
mailman2-162234d13d13817514fc47c7422191dfd8b73ec9.zip
Changed the fix for LP: #1316682 to not create a message that triggers
Python issue 7970 rather than incorporating the fix for issue 7970 in our Generator subclass.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/WrapMessage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/WrapMessage.py b/Mailman/Handlers/WrapMessage.py
index 9678f6fd..d6483e7f 100644
--- a/Mailman/Handlers/WrapMessage.py
+++ b/Mailman/Handlers/WrapMessage.py
@@ -67,6 +67,6 @@ def process(mlist, msg, msgdata):
# Add the headers from CookHeaders.
for k, v in msgdata['add_header'].items():
msg[k] = v
- # And set the payload.
- msg.set_payload(omsg.as_string())
+ # And set the payload the way email parses it.
+ msg.set_payload([omsg])