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

Method smtp_EHLO

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

Source from the content-addressed store, hash-verified

396 self.push('250 %s' % self.fqdn)
397
398 def smtp_EHLO(self, arg):
399 if not arg:
400 self.push('501 Syntax: EHLO hostname')
401 return
402 # See issue #21783 for a discussion of this behavior.
403 if self.seen_greeting:
404 self.push('503 Duplicate HELO/EHLO')
405 return
406 self._set_rset_state()
407 self.seen_greeting = arg
408 self.extended_smtp = True
409 self.push('250-%s' % self.fqdn)
410 if self.data_size_limit:
411 self.push('250-SIZE %s' % self.data_size_limit)
412 self.command_size_limits['MAIL'] += 26
413 if not self._decode_data:
414 self.push('250-8BITMIME')
415 if self.enable_SMTPUTF8:
416 self.push('250-SMTPUTF8')
417 self.command_size_limits['MAIL'] += 10
418 self.push('250 HELP')
419
420 def smtp_NOOP(self, arg):
421 if arg:

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
_set_rset_stateMethod · 0.95

Tested by

no test coverage detected