summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-12-13 16:35:05 +0000
committerbwarsaw2002-12-13 16:35:05 +0000
commit44946b3fe91bd59684850f07b3355314865b6e90 (patch)
treef701a02380d3d2058916d7fc9d8d299842939b4c
parent8afb6a96eb1ae0f813db3d23cb2b5b47d309d0f0 (diff)
downloadmailman-44946b3fe91bd59684850f07b3355314865b6e90.tar.gz
mailman-44946b3fe91bd59684850f07b3355314865b6e90.tar.zst
mailman-44946b3fe91bd59684850f07b3355314865b6e90.zip
-rw-r--r--Mailman/Handlers/Decorate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py
index a8621dad7..5605e3215 100644
--- a/Mailman/Handlers/Decorate.py
+++ b/Mailman/Handlers/Decorate.py
@@ -124,7 +124,9 @@ def process(mlist, msg, msgdata):
inner.set_unixfrom(msg.get_unixfrom())
inner.preamble = msg.preamble
inner.epilogue = msg.epilogue
- inner.set_charset(msg.get_charset())
+ # Don't copy get_charset, as this might be None, even if
+ # get_content_charset isn't. However, do make sure there is a default
+ # content-type, even if the original message was not MIME.
inner.set_default_type(msg.get_default_type())
# BAW: HACK ALERT.
if hasattr(msg, '__version__'):