summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-02-11 18:05:05 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-02-11 18:05:05 (GMT)
commitf151625b59bcd07e35910281444aa4a5974613c7 (patch)
tree19cca2cae37577cd68ae42e39840868b4538ae74 /Lib
parent4212ea4d7a09b5d2e4687b10d9b1cdd1b4e5ae1a (diff)
downloadcpython-f151625b59bcd07e35910281444aa4a5974613c7.zip
cpython-f151625b59bcd07e35910281444aa4a5974613c7.tar.gz
cpython-f151625b59bcd07e35910281444aa4a5974613c7.tar.bz2
SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used
Note: There is a TBD (aka FIXME) for how best to handle the refused addresses
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/smtpd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index eb0a9b9..bd91637 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -348,7 +348,7 @@ class PureProxy(SMTPServer):
data = NEWLINE.join(lines)
refused = self._deliver(mailfrom, rcpttos, data)
# TBD: what to do with refused addresses?
- print >> DEBUGSTREAM, 'we got some refusals'
+ print >> DEBUGSTREAM, 'we got some refusals:', refused
def _deliver(self, mailfrom, rcpttos, data):
import smtplib
@@ -417,7 +417,7 @@ class MailmanProxy(PureProxy):
if rcpttos:
refused = self._deliver(mailfrom, rcpttos, data)
# TBD: what to do with refused addresses?
- print >> DEBUGSTREAM, 'we got refusals'
+ print >> DEBUGSTREAM, 'we got refusals:', refused
# Now deliver directly to the list commands
mlists = {}
s = StringIO(data)