summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/ToDigest.py
diff options
context:
space:
mode:
authorbwarsaw2001-10-01 23:07:42 +0000
committerbwarsaw2001-10-01 23:07:42 +0000
commitd6f25c99a637aabab2ff643631b941a2cda330d3 (patch)
tree1afa0009b5a52d465fd8c344baee03c77c402657 /Mailman/Handlers/ToDigest.py
parent8a53d2a8611c5493a9430495827af86e6331aef6 (diff)
downloadmailman-d6f25c99a637aabab2ff643631b941a2cda330d3.tar.gz
mailman-d6f25c99a637aabab2ff643631b941a2cda330d3.tar.zst
mailman-d6f25c99a637aabab2ff643631b941a2cda330d3.zip
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 24fba051c..e3af1cce9 100644
--- a/Mailman/Handlers/ToDigest.py
+++ b/Mailman/Handlers/ToDigest.py
@@ -77,7 +77,8 @@ def process(mlist, msg, msgdata):
# 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
# whether the size threshold has been reached.
- size = mboxfp.tell()
+ mboxfp.flush()
+ size = os.path.getsize(mboxfile)
if size / 1024.0 >= mlist.digest_size_threshhold:
# This is a bit of a kludge to get the mbox file moved to the digest
# queue directory.
@@ -246,7 +247,7 @@ def send_i18n_digests(mlist, mboxfp):
# headers according to rfc1153.
keeper = {}
for keep in KEEP:
- keeper[keep] = msg.getall(keep)
+ keeper[keep] = msg.get_all(keep)
# Now remove all unkempt headers :)
for header in msg.keys():
del msg[header]