Commit f151625b authored by Neal Norwitz's avatar Neal Norwitz

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
parent 4212ea4d
...@@ -348,7 +348,7 @@ class PureProxy(SMTPServer): ...@@ -348,7 +348,7 @@ class PureProxy(SMTPServer):
data = NEWLINE.join(lines) data = NEWLINE.join(lines)
refused = self._deliver(mailfrom, rcpttos, data) refused = self._deliver(mailfrom, rcpttos, data)
# TBD: what to do with refused addresses? # 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): def _deliver(self, mailfrom, rcpttos, data):
import smtplib import smtplib
...@@ -417,7 +417,7 @@ class MailmanProxy(PureProxy): ...@@ -417,7 +417,7 @@ class MailmanProxy(PureProxy):
if rcpttos: if rcpttos:
refused = self._deliver(mailfrom, rcpttos, data) refused = self._deliver(mailfrom, rcpttos, data)
# TBD: what to do with refused addresses? # 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 # Now deliver directly to the list commands
mlists = {} mlists = {}
s = StringIO(data) s = StringIO(data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment