mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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
This commit is contained in:
parent
4212ea4d7a
commit
f151625b59
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue