summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Hold.py
diff options
context:
space:
mode:
authorbwarsaw2002-03-11 04:17:49 +0000
committerbwarsaw2002-03-11 04:17:49 +0000
commita369681c8addcf69d3c4600923c6ad991c381e48 (patch)
tree4b29e81458c3e4fa3efa4b37ccbf40aaa679dbe6 /Mailman/Handlers/Hold.py
parent35df975e137b3c101b58b418604c5116348686e4 (diff)
downloadmailman-a369681c8addcf69d3c4600923c6ad991c381e48.tar.gz
mailman-a369681c8addcf69d3c4600923c6ad991c381e48.tar.zst
mailman-a369681c8addcf69d3c4600923c6ad991c381e48.zip
hold_for_approval(): When crafting the notification message destined
for the list owner, unset the charset parameter on the multipart/mixed Content-Type: header.
Diffstat (limited to 'Mailman/Handlers/Hold.py')
-rw-r--r--Mailman/Handlers/Hold.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index 5ca1fb4eb..94720aab1 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -239,6 +239,8 @@ def hold_for_approval(mlist, msg, msgdata, exc):
nmsg = Message.UserNotification(owneraddr, owneraddr, subject,
lang=lang)
nmsg.set_type('multipart/mixed')
+ # No charset parameter on multipart/mixeds
+ nmsg.set_charset(None)
text = MIMEText(
Utils.maketext('postauth.txt', d, raw=1, mlist=mlist),
_charset=charset)