Commit 033c58ad authored by Benjamin Peterson's avatar Benjamin Peterson

remove smtpd dead code (closes #23873)

Patch by Hoolean.
parent b32fb8d2
...@@ -476,9 +476,6 @@ class SMTPChannel(asynchat.async_chat): ...@@ -476,9 +476,6 @@ class SMTPChannel(asynchat.async_chat):
if not self.extended_smtp and params: if not self.extended_smtp and params:
self.push(syntaxerr) self.push(syntaxerr)
return return
if not address:
self.push(syntaxerr)
return
if self.mailfrom: if self.mailfrom:
self.push('503 Error: nested MAIL command') self.push('503 Error: nested MAIL command')
return return
...@@ -529,15 +526,9 @@ class SMTPChannel(asynchat.async_chat): ...@@ -529,15 +526,9 @@ class SMTPChannel(asynchat.async_chat):
else: else:
self.push(syntaxerr) self.push(syntaxerr)
return return
if not address:
self.push(syntaxerr)
return
if params and len(params.keys()) > 0: if params and len(params.keys()) > 0:
self.push('555 RCPT TO parameters not recognized or not implemented') self.push('555 RCPT TO parameters not recognized or not implemented')
return return
if not address:
self.push('501 Syntax: RCPT TO: <address>')
return
self.rcpttos.append(address) self.rcpttos.append(address)
print('recips:', self.rcpttos, file=DEBUGSTREAM) print('recips:', self.rcpttos, file=DEBUGSTREAM)
self.push('250 OK') self.push('250 OK')
......
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