MCPcopy Index your code
hub / github.com/python/cpython / smtp_HELO

Method smtp_HELO

Lib/test/support/smtpd.py:385–395  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

383
384 # SMTP and ESMTP commands
385 def smtp_HELO(self, arg):
386 if not arg:
387 self.push('501 Syntax: HELO hostname')
388 return
389 # See issue #21783 for a discussion of this behavior.
390 if self.seen_greeting:
391 self.push('503 Duplicate HELO/EHLO')
392 return
393 self._set_rset_state()
394 self.seen_greeting = arg
395 self.push('250 %s' % self.fqdn)
396
397 def smtp_EHLO(self, arg):
398 if not arg:

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
_set_rset_stateMethod · 0.95

Tested by

no test coverage detected