Lines Matching defs:data
38 # Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)
131 """The SMTP server didn't accept the data."""
167 def quotedata(data):
168 """Quote data for email.
174 re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
179 def _fix_eols(data):
180 return re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data)
354 # send is used by the 'data' command, where command_encoding
355 # should not be used, but 'data' needs to convert the string to
556 def data(self, msg):
557 """SMTP 'DATA' command -- sends message data to server.
562 response code received when the all data is sent. If msg
566 self.putcmd("data")
569 self._print_debug('data:', (code, repl))
582 self._print_debug('data:', (code, msg))
625 data = authobject(challenge)
902 (code, resp) = self.data(msg)