Kaydet (Commit) 4b2a6dbf authored tarafından Neal Norwitz's avatar Neal Norwitz

Backport 58618:

Issue 1307 by Derek Shockey, fix the same bug for RCPT.
üst 4aa5f4bc
......@@ -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
......
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