aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/SMTPDirect.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Handlers/SMTPDirect.py')
-rw-r--r--Mailman/Handlers/SMTPDirect.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index 2604c244..cb967ad0 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -45,6 +45,12 @@ from email.Charset import Charset
DOT = '.'
+try:
+ True, False
+except NameError:
+ True = 1
+ False = 0
+
# Manage a connection to the SMTP server
@@ -123,7 +129,7 @@ def process(mlist, msg, msgdata):
# Be sure never to decorate the message more than once!
if not msgdata.get('decorated'):
Decorate.process(mlist, msg, msgdata)
- msgdata['decorated'] = 1
+ msgdata['decorated'] = True
deliveryfunc = bulkdeliver
refused = {}
t0 = time.time()