summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-11-12 21:06:22 +0000
committerbwarsaw1999-11-12 21:06:22 +0000
commit48aa1953c058d13b1e004362598c2a3979c5bfd5 (patch)
treee757788f32bfb8f973742484f453fd82dad840e0
parent582a260956198aa0aef3e182d6eae24b5ef41d1d (diff)
downloadmailman-48aa1953c058d13b1e004362598c2a3979c5bfd5.tar.gz
mailman-48aa1953c058d13b1e004362598c2a3979c5bfd5.tar.zst
mailman-48aa1953c058d13b1e004362598c2a3979c5bfd5.zip
When adding the header and the footer, be sure to convert \r\n to just
\n so we don't see ^M's in this text (some MTAs may do the conversion anyway, but not all)
-rw-r--r--Mailman/Handlers/Decorate.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py
index 107098453..76fd37de9 100644
--- a/Mailman/Handlers/Decorate.py
+++ b/Mailman/Handlers/Decorate.py
@@ -19,6 +19,7 @@
from Mailman import mm_cfg
from Mailman import Utils
+import string
@@ -26,6 +27,6 @@ def process(mlist, msg):
d = Utils.SafeDict(mlist.__dict__)
d['cgiext'] = mm_cfg.CGIEXT
# interpolate into the header
- header = mlist.msg_header % d
- footer = mlist.msg_footer % d
+ header = string.replace(mlist.msg_header % d, '\r\n', '\n')
+ footer = string.replace(mlist.msg_footer % d, '\r\n', '\n')
msg.body = header + msg.body + footer