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

Method smtp_EHLO

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

Source from the content-addressed store, hash-verified

407 self.push('250 %s' % self.fqdn)
408
409 def smtp_EHLO(self, arg):
410 if not arg:
411 self.push('501 Syntax: EHLO hostname')
412 return
413 # See issue #21783 for a discussion of this behavior.
414 if self.seen_greeting:
415 self.push('503 Duplicate HELO/EHLO')
416 return
417 self._set_rset_state()
418 self.seen_greeting = arg
419 self.extended_smtp = True
420 self.push('250-%s' % self.fqdn)
421 if self.data_size_limit:
422 self.push('250-SIZE %s' % self.data_size_limit)
423 self.command_size_limits['MAIL'] += 26
424 if not self._decode_data:
425 self.push('250-8BITMIME')
426 if self.enable_SMTPUTF8:
427 self.push('250-SMTPUTF8')
428 self.command_size_limits['MAIL'] += 10
429 self.push('250 HELP')
430
431 def smtp_NOOP(self, arg):
432 if arg:

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
_set_rset_stateMethod · 0.95

Tested by

no test coverage detected