Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory sc8-pr-cvs1:/tmp/cvs-serv7582

Modified Files:
        ToDigest.py 
Log Message:
process(): Use Mailman's Mailbox object to append new messages to the
digest.mbox file.  This is the same technique that the archiver uses,
and should fix Chuq's problem with missing trailing newline separators
in digest messages.


Index: ToDigest.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/ToDigest.py,v
retrieving revision 2.27
retrieving revision 2.28
diff -u -d -r2.27 -r2.28
--- ToDigest.py 11 Apr 2003 03:06:14 -0000      2.27
+++ ToDigest.py 15 Aug 2003 21:06:28 -0000      2.28
@@ -44,6 +44,7 @@
 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 @@
         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



_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to