aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/ToDigest.py
diff options
context:
space:
mode:
authorbwarsaw <>2003-04-19 04:57:44 +0000
committerbwarsaw <>2003-04-19 04:57:44 +0000
commit1a07013f3b027ea660ad9d6d4d551dd1c92adb6f (patch)
treea2db8059ccd908d7a338a6a613a4cd4107db097c /Mailman/Handlers/ToDigest.py
parent2915af94a5b9e208ca7a9fd414854017c967179d (diff)
downloadmailman2-1a07013f3b027ea660ad9d6d4d551dd1c92adb6f.tar.gz
mailman2-1a07013f3b027ea660ad9d6d4d551dd1c92adb6f.tar.xz
mailman2-1a07013f3b027ea660ad9d6d4d551dd1c92adb6f.zip
Backport from the trunk, and catalog regeneration.
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
-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