aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/ToDigest.py
diff options
context:
space:
mode:
authorbwarsaw <>2003-09-22 02:37:51 +0000
committerbwarsaw <>2003-09-22 02:37:51 +0000
commitc43087be33f78a895b74869800a775c4a0cb9a27 (patch)
tree7f5418e8b5a8eb70d0639ef9d11f16d685f57517 /Mailman/Handlers/ToDigest.py
parentd206e467d12f5e5a6e08f6ed11a559054f2e183f (diff)
downloadmailman2-c43087be33f78a895b74869800a775c4a0cb9a27.tar.gz
mailman2-c43087be33f78a895b74869800a775c4a0cb9a27.tar.xz
mailman2-c43087be33f78a895b74869800a775c4a0cb9a27.zip
Backporting from the HEAD -- updated handlers
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
-rw-r--r--Mailman/Handlers/ToDigest.py5
1 files changed, 3 insertions, 2 deletions
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