Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f151625

Browse files
committed
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
1 parent 4212ea4 commit f151625

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/smtpd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
348348
data = NEWLINE.join(lines)
349349
refused = self._deliver(mailfrom, rcpttos, data)
350350
# TBD: what to do with refused addresses?
351-
print >> DEBUGSTREAM, 'we got some refusals'
351+
print >> DEBUGSTREAM, 'we got some refusals:', refused
352352

353353
def _deliver(self, mailfrom, rcpttos, data):
354354
import smtplib
@@ -417,7 +417,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
417417
if rcpttos:
418418
refused = self._deliver(mailfrom, rcpttos, data)
419419
# TBD: what to do with refused addresses?
420-
print >> DEBUGSTREAM, 'we got refusals'
420+
print >> DEBUGSTREAM, 'we got refusals:', refused
421421
# Now deliver directly to the list commands
422422
mlists = {}
423423
s = StringIO(data)

0 commit comments

Comments
 (0)