MCPcopy Index your code
hub / github.com/RustPython/RustPython / smtp_HELO

Method smtp_HELO

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
_set_rset_stateMethod · 0.95

Tested by

no test coverage detected