Kaydet (Commit) 910ab500 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

Neal: please backport!
üst fef8be66
...@@ -237,7 +237,7 @@ class SMTPChannel(asynchat.async_chat): ...@@ -237,7 +237,7 @@ class SMTPChannel(asynchat.async_chat):
if not self.__mailfrom: if not self.__mailfrom:
self.push('503 Error: need MAIL command') self.push('503 Error: need MAIL command')
return return
address = self.__getaddr('TO:', arg) address = self.__getaddr('TO:', arg) if arg else None
if not address: if not address:
self.push('501 Syntax: RCPT TO: <address>') self.push('501 Syntax: RCPT TO: <address>')
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment