From: Guido van Rossum Date: Tue, 23 Oct 2007 19:25:41 +0000 (+0000) Subject: Issue 1307 by Derek Shockey, fox the same bug for RCPT. X-Git-Tag: v2.6a1~1137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=910ab50091f650481d1875c9c4c5cf91087856f2;p=python Issue 1307 by Derek Shockey, fox the same bug for RCPT. Neal: please backport! --- diff --git a/Lib/smtpd.py b/Lib/smtpd.py index 4aa34763ec..e09774f2d9 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -237,7 +237,7 @@ class SMTPChannel(asynchat.async_chat): 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:
') return