Backport 58594:
Issue #1307, patch by Derek Shockey. When "MAIL" is received without args, an exception happens instead of sending a 501 syntax error response.
This commit is contained in:
parent
35a9f908c8
commit
1046af6f59
|
@ -221,7 +221,7 @@ class SMTPChannel(asynchat.async_chat):
|
|||
|
||||
def smtp_MAIL(self, arg):
|
||||
print >> DEBUGSTREAM, '===> MAIL', arg
|
||||
address = self.__getaddr('FROM:', arg)
|
||||
address = self.__getaddr('FROM:', arg) if arg else None
|
||||
if not address:
|
||||
self.push('501 Syntax: MAIL FROM:<address>')
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue