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