diff options
| author | bwarsaw | 2001-07-10 05:44:18 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-10 05:44:18 +0000 |
| commit | 48ed7a4a9ca43b274264bb44798511eedc1eb164 (patch) | |
| tree | 14a77e8312b6993aa1927c35ef8bc5daf7337d3e /Mailman/Handlers/ToDigest.py | |
| parent | af67b051fc75b08dfd3904d5ad7c2079e11d0b15 (diff) | |
| download | mailman-48ed7a4a9ca43b274264bb44798511eedc1eb164.tar.gz mailman-48ed7a4a9ca43b274264bb44798511eedc1eb164.tar.zst mailman-48ed7a4a9ca43b274264bb44798511eedc1eb164.zip | |
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
| -rw-r--r-- | Mailman/Handlers/ToDigest.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index a665fe1d5..b2a45355e 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -35,7 +35,6 @@ from mimelib.Generator import Generator from mimelib.MIMEBase import MIMEBase from mimelib.Text import Text from mimelib.address import getaddresses -from mimelib.StringableMixin import StringableMixin from Mailman import mm_cfg from Mailman import Utils @@ -97,11 +96,6 @@ def msgfactory(fp): return p.parse(fp) -# We want mimelib's MIMEBase class, but we also want a str() able object. -class StringableMIME(MIMEBase, StringableMixin): - pass - - def send_digests(mlist, mboxfp): # Set the digest volume and time @@ -154,7 +148,9 @@ def send_i18n_digests(mlist, mboxfp): digestid = _('%(realname)s Digest, Vol %(volume)d, Issue %(issue)d') # Set things up for the MIME digest. Only headers not added by # CookHeaders need be added here. - mimemsg = StringableMIME('multipart', 'mixed') + mimemsg = Message.Message() + mimemsg['Content-Type'] = 'multipart/mixed' + mimemsg['MIME-Version'] = '1.0' mimemsg['From'] = mlist.GetRequestEmail() mimemsg['Subject'] = digestid mimemsg['To'] = mlist.GetListEmail() |
