[Python-checkins] r58625 - python/branches/release25-maint/Lib/smtpd.py

neal.norwitz python-checkins at python.org
Wed Oct 24 05:52:51 CEST 2007


Author: neal.norwitz
Date: Wed Oct 24 05:52:50 2007
New Revision: 58625

Modified:
   python/branches/release25-maint/Lib/smtpd.py
Log:
Backport 58618:
Issue 1307 by Derek Shockey, fix the same bug for RCPT.


Modified: python/branches/release25-maint/Lib/smtpd.py
==============================================================================
--- python/branches/release25-maint/Lib/smtpd.py	(original)
+++ python/branches/release25-maint/Lib/smtpd.py	Wed Oct 24 05:52:50 2007
@@ -237,7 +237,7 @@
         if not self.__mailfrom:
             self.push('503 Error: need MAIL command')
             return
-        address = self.__getaddr('TO:', arg)
+        address = self.__getaddr('TO:', arg) if arg else None
         if not address:
             self.push('501 Syntax: RCPT TO: <address>')
             return


More information about the Python-checkins mailing list