summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/to_digest.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-15 11:12:13 -0500
committerBarry Warsaw2014-12-15 11:12:13 -0500
commitd0c53890bf0c8aa531d45958f0e25fdaccbdb133 (patch)
treea4a4e4b1cb48b08540fb809cd06bf272f69f4c6a /src/mailman/handlers/to_digest.py
parentbdc9795891a6df7e1ae61204d0640339cf48ebee (diff)
downloadmailman-d0c53890bf0c8aa531d45958f0e25fdaccbdb133.tar.gz
mailman-d0c53890bf0c8aa531d45958f0e25fdaccbdb133.tar.zst
mailman-d0c53890bf0c8aa531d45958f0e25fdaccbdb133.zip
Diffstat (limited to 'src/mailman/handlers/to_digest.py')
-rw-r--r--src/mailman/handlers/to_digest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/handlers/to_digest.py b/src/mailman/handlers/to_digest.py
index e915bbfa3..9eb5818bb 100644
--- a/src/mailman/handlers/to_digest.py
+++ b/src/mailman/handlers/to_digest.py
@@ -55,7 +55,7 @@ class ToDigest:
mailbox_path = os.path.join(mlist.data_path, 'digest.mmdf')
# Lock the mailbox and append the message.
with Mailbox(mailbox_path, create=True) as mbox:
- mbox.add(msg.as_string())
+ mbox.add(msg)
# Calculate the current size of the mailbox file. This will not tell
# us exactly how big the resulting MIME and rfc1153 digest will
# actually be, but it's the most easily available metric to decide