aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/SMTPDirect.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-04-21 08:01:01 -0700
committerMark Sapiro <mark@msapiro.net>2016-04-21 08:01:01 -0700
commit7ed5fe5c0668f2014a7f7a08376b4e6a2e3e921c (patch)
tree91bb07d2fe78edf90724cdcfe064c41d5e205a62 /Mailman/Handlers/SMTPDirect.py
parent97557e37b4436ea4bf09ef618e6105951266b838 (diff)
downloadmailman2-7ed5fe5c0668f2014a7f7a08376b4e6a2e3e921c.tar.gz
mailman2-7ed5fe5c0668f2014a7f7a08376b4e6a2e3e921c.tar.xz
mailman2-7ed5fe5c0668f2014a7f7a08376b4e6a2e3e921c.zip
Implimented mm_cfg.SMTPLIB_DEBUG_LEVEL setting.
Diffstat (limited to '')
-rw-r--r--Mailman/Handlers/SMTPDirect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index 1d11d19a..32b03423 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2011 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2016 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -61,6 +61,7 @@ class Connection:
def __connect(self):
self.__conn = smtplib.SMTP()
+ self.__conn.set_debuglevel(mm_cfg.SMTPLIB_DEBUG_LEVEL)
self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT)
self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION