From: Neal Norwitz Date: Mon, 11 Feb 2002 18:05:05 +0000 (+0000) Subject: SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used X-Git-Tag: v2.3c1~6697 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f151625b59bcd07e35910281444aa4a5974613c7;p=python 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 --- diff --git a/Lib/smtpd.py b/Lib/smtpd.py index eb0a9b91f3..bd9163779d 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)