From 8399b9bed6cbc81185196b439e7d7fc0d094f0cd Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 11 Apr 2002 02:50:44 +0000 Subject: hold_for_approval(): Mentor Cana notices that we need to use attach() for the deprecated add_payload(). --- Mailman/Handlers/Hold.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Mailman') diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py index 7e37622f9..40e4270b5 100644 --- a/Mailman/Handlers/Hold.py +++ b/Mailman/Handlers/Hold.py @@ -252,9 +252,9 @@ also appear in the first line of the body of the reply.""")), dmsg['Subject'] = 'confirm ' + cookie dmsg['Sender'] = requestaddr dmsg['From'] = requestaddr - nmsg.add_payload(text) - nmsg.add_payload(MIMEMessage(msg)) - nmsg.add_payload(MIMEMessage(dmsg)) + nmsg.attach(text) + nmsg.attach(MIMEMessage(msg)) + nmsg.attach(MIMEMessage(dmsg)) nmsg.send(mlist, **{'tomoderators': 1}) finally: i18n.set_translation(otranslation) -- cgit v1.3.1