From c43087be33f78a895b74869800a775c4a0cb9a27 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Mon, 22 Sep 2003 02:37:51 +0000 Subject: Backporting from the HEAD -- updated handlers --- Mailman/Handlers/ToDigest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Mailman/Handlers/ToDigest.py') diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index b25b1f4f..5d354473 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -44,6 +44,7 @@ from Mailman import mm_cfg from Mailman import Utils from Mailman import Message from Mailman import i18n +from Mailman.Mailbox import Mailbox from Mailman.MemberAdaptor import ENABLED from Mailman.Handlers.Decorate import decorate from Mailman.Queue.sbcache import get_switchboard @@ -74,8 +75,8 @@ def process(mlist, msg, msgdata): mboxfp = open(mboxfile, 'a+') finally: os.umask(omask) - g = Generator(mboxfp) - g.flatten(msg, unixfrom=True) + mbox = Mailbox(mboxfp) + mbox.AppendMessage(msg) # Calculate the current size of the accumulation file. This will not tell # us exactly how big the MIME, rfc1153, or any other generated digest # message will be, but it's the most easily available metric to decide -- cgit v1.2.3