[Python-checkins] r58618 - python/trunk/Lib/smtpd.py

guido.van.rossum python-checkins at python.org
Tue Oct 23 21:25:42 CEST 2007


Author: guido.van.rossum
Date: Tue Oct 23 21:25:41 2007
New Revision: 58618

Modified:
   python/trunk/Lib/smtpd.py
Log:
Issue 1307 by Derek Shockey, fox the same bug for RCPT.
Neal: please backport!


Modified: python/trunk/Lib/smtpd.py
==============================================================================
--- python/trunk/Lib/smtpd.py	(original)
+++ python/trunk/Lib/smtpd.py	Tue Oct 23 21:25:41 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