MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / smtp_HELO

Method smtp_HELO

tools/python-3.11.9-amd64/Lib/smtpd.py:397–407  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

395
396 # SMTP and ESMTP commands
397 def smtp_HELO(self, arg):
398 if not arg:
399 self.push('501 Syntax: HELO hostname')
400 return
401 # See issue #21783 for a discussion of this behavior.
402 if self.seen_greeting:
403 self.push('503 Duplicate HELO/EHLO')
404 return
405 self._set_rset_state()
406 self.seen_greeting = arg
407 self.push('250 %s' % self.fqdn)
408
409 def smtp_EHLO(self, arg):
410 if not arg:

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
_set_rset_stateMethod · 0.95

Tested by

no test coverage detected