(self, arg)
| 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: |
nothing calls this directly
no test coverage detected