summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2003-04-11 03:06:14 +0000
committerbwarsaw2003-04-11 03:06:14 +0000
commitf18862457926389e760ed9f8a71f983b483479e5 (patch)
treeb0ffff73ff262c17acb2ae5ba0d442d3e547c9cf
parentebc234a67604f22e68b9fcd7b379d9cb73fbb4f8 (diff)
downloadmailman-f18862457926389e760ed9f8a71f983b483479e5.tar.gz
mailman-f18862457926389e760ed9f8a71f983b483479e5.tar.zst
mailman-f18862457926389e760ed9f8a71f983b483479e5.zip
send_i18n_digests(): Patch # 694912 by Tokio Kikuchi to fix the
scrubbing of attachments in MIME digest messages.
-rw-r--r--Mailman/Handlers/ToDigest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py
index 3506beaa6..b25b1f4fa 100644
--- a/Mailman/Handlers/ToDigest.py
+++ b/Mailman/Handlers/ToDigest.py
@@ -27,6 +27,7 @@
import os
import re
+import copy
import time
from types import ListType
from cStringIO import StringIO
@@ -289,8 +290,9 @@ def send_i18n_digests(mlist, mboxfp):
mimemsg.attach(mimedigest)
first = True
for msg in messages:
- # MIME
- mimedigest.attach(MIMEMessage(msg))
+ # MIME. Make a copy of the message object since the rfc1153
+ # processing scrubs out attachments.
+ mimedigest.attach(MIMEMessage(copy.deepcopy(msg)))
# rfc1153
if first:
first = False