merge 3.4 (#23873)
This commit is contained in:
commit
43a1bed3d2
|
@ -525,9 +525,6 @@ class SMTPChannel(asynchat.async_chat):
|
|||
if not self.extended_smtp and params:
|
||||
self.push(syntaxerr)
|
||||
return
|
||||
if not address:
|
||||
self.push(syntaxerr)
|
||||
return
|
||||
if self.mailfrom:
|
||||
self.push('503 Error: nested MAIL command')
|
||||
return
|
||||
|
@ -586,15 +583,9 @@ class SMTPChannel(asynchat.async_chat):
|
|||
else:
|
||||
self.push(syntaxerr)
|
||||
return
|
||||
if not address:
|
||||
self.push(syntaxerr)
|
||||
return
|
||||
if params and len(params.keys()) > 0:
|
||||
self.push('555 RCPT TO parameters not recognized or not implemented')
|
||||
return
|
||||
if not address:
|
||||
self.push('501 Syntax: RCPT TO: <address>')
|
||||
return
|
||||
self.rcpttos.append(address)
|
||||
print('recips:', self.rcpttos, file=DEBUGSTREAM)
|
||||
self.push('250 OK')
|
||||
|
|
Loading…
Reference in New Issue