MCPcopy Index your code
hub / github.com/python/cpython / smtp_DATA

Method smtp_DATA

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

Source from the content-addressed store, hash-verified

598 self.push('250 OK')
599
600 def smtp_DATA(self, arg):
601 if not self.seen_greeting:
602 self.push('503 Error: send HELO first');
603 return
604 if not self.rcpttos:
605 self.push('503 Error: need RCPT command')
606 return
607 if arg:
608 self.push('501 Syntax: DATA')
609 return
610 self.smtp_state = self.DATA
611 self.set_terminator(b'\r\n.\r\n')
612 self.push('354 End data with <CR><LF>.<CR><LF>')
613
614 # Commands that have not been implemented
615 def smtp_EXPN(self, arg):

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
set_terminatorMethod · 0.80

Tested by

no test coverage detected