aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/ToDigest.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 3506beaa..b25b1f4f 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