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

Method smtp_DATA

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

Source from the content-addressed store, hash-verified

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