Issue 1307 by Derek Shockey, fox the same bug for RCPT.

Neal: please backport!
This commit is contained in:
Guido van Rossum 2007-10-23 19:25:41 +00:00
parent fef8be66e3
commit 910ab50091
1 changed files with 1 additions and 1 deletions

View File

@ -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: <address>')
return