]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for SF bug # 1010102. The default is PureProxy not SMTPProxy.
authorBarry Warsaw <barry@python.org>
Sat, 9 Oct 2004 21:43:47 +0000 (21:43 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 9 Oct 2004 21:43:47 +0000 (21:43 +0000)
Lib/smtpd.py

index ec1f7e76efb2c8a65931a4819ab23fa2203f3519..742a2d2264ea04c079fe4d79e1470ac0490589ff 100755 (executable)
@@ -17,7 +17,7 @@ Options:
 
     --class classname
     -c classname
-        Use `classname' as the concrete SMTP proxy class.  Uses `SMTPProxy' by
+        Use `classname' as the concrete SMTP proxy class.  Uses `PureProxy' by
         default.
 
     --debug
@@ -346,6 +346,7 @@ class PureProxy(SMTPServer):
         refused = self._deliver(mailfrom, rcpttos, data)
         # TBD: what to do with refused addresses?
         print >> DEBUGSTREAM, 'we got some refusals:', refused
+        return refused
 
     def _deliver(self, mailfrom, rcpttos, data):
         import smtplib