summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-12-13 03:40:55 +0000
committerbwarsaw2002-12-13 03:40:55 +0000
commit8afb6a96eb1ae0f813db3d23cb2b5b47d309d0f0 (patch)
tree1f9eb5003bb49358e861c01447e528536d0e6599
parentd9fdc219fa224e16cb897f25a79baeacefeb0e17 (diff)
downloadmailman-8afb6a96eb1ae0f813db3d23cb2b5b47d309d0f0.tar.gz
mailman-8afb6a96eb1ae0f813db3d23cb2b5b47d309d0f0.tar.zst
mailman-8afb6a96eb1ae0f813db3d23cb2b5b47d309d0f0.zip
process(): Martin von Loewis's fix for specifying the charset of
header/footer attachments. Closes SF #652910.
-rw-r--r--Mailman/Handlers/Decorate.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py
index b1fe829fd..a8621dad7 100644
--- a/Mailman/Handlers/Decorate.py
+++ b/Mailman/Handlers/Decorate.py
@@ -92,8 +92,8 @@ def process(mlist, msg, msgdata):
elif msg.get_type() == 'multipart/mixed':
# The next easiest thing to do is just prepend the header and append
# the footer as additional subparts
- mimehdr = MIMEText(header)
- mimeftr = MIMEText(footer)
+ mimehdr = MIMEText(header, 'plain', lcset)
+ mimeftr = MIMEText(footer, 'plain', lcset)
payload = msg.get_payload()
if not isinstance(payload, ListType):
payload = [payload]
@@ -134,10 +134,10 @@ def process(mlist, msg, msgdata):
# any).
payload = [inner]
if header:
- mimehdr = MIMEText(header)
+ mimehdr = MIMEText(header, 'plain', lcset)
payload.insert(0, mimehdr)
if footer:
- mimeftr = MIMEText(footer)
+ mimeftr = MIMEText(footer, 'plain', lcset)
payload.append(mimeftr)
msg.set_payload(payload)
del msg['content-type']