summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-09-15 17:19:19 +0000
committerbwarsaw2000-09-15 17:19:19 +0000
commitcc25cc1df659fd2990bdfb2d8490245d4e7831f6 (patch)
tree0855f9495fb2a347a056a443ddd01199347c68d3
parent6f85c0173a167151b6de47e8c77231127e319f67 (diff)
downloadmailman-cc25cc1df659fd2990bdfb2d8490245d4e7831f6.tar.gz
mailman-cc25cc1df659fd2990bdfb2d8490245d4e7831f6.tar.zst
mailman-cc25cc1df659fd2990bdfb2d8490245d4e7831f6.zip
process(): Don't tack on the regular mail header and footer if the
message is a digest (the digest header and footer should already be properly attached).
-rw-r--r--Mailman/Handlers/Decorate.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py
index 6192b0353..b953def7a 100644
--- a/Mailman/Handlers/Decorate.py
+++ b/Mailman/Handlers/Decorate.py
@@ -26,6 +26,9 @@ from Mailman.Logging.Syslog import syslog
def process(mlist, msg, msgdata):
+ if msgdata.get('isdigest'):
+ # Digests already have their own header and footers attached.
+ return
d = Utils.SafeDict(mlist.__dict__)
d['cgiext'] = mm_cfg.CGIEXT
# interpolate into the header