From 1a07013f3b027ea660ad9d6d4d551dd1c92adb6f Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sat, 19 Apr 2003 04:57:44 +0000 Subject: Backport from the trunk, and catalog regeneration. --- Mailman/Handlers/ToDigest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Mailman/Handlers/ToDigest.py') 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 -- cgit v1.2.3