List of all members.
Definition at line 9 of file test_smtpd.py.
Constructor & Destructor Documentation
Member Function Documentation
Definition at line 264 of file asyncore.py.
00265 def __repr__(self):
00266 status = [self.__class__.__module__+"."+self.__class__.__name__]
00267 if self.accepting and self.addr:
00269 elif self.connected:
00271 if self.addr is not None:
00273 status.append('%s:%d' % self.addr)
00274 except TypeError:
00276 return '<%s at %#x>' % (' '.join(status), id(self))
Override this abstract method to handle messages from the client.
peer is a tuple containing (ipaddr, port) of the client that made the
socket connection to our smtp port.
mailfrom is the raw address the client claims the message is coming
rcpttos is a list of raw addresses the client wishes to deliver the
data is a string containing the entire full text of the message,
headers (if supplied) and all. It has been `de-transparencied'
according to RFC 821, Section 4.5.2. In other words, a line
containing a `.' followed by other text has had the leading dot
This function should return None, for a normal `250 Ok' response;
otherwise it returns the desired response string in RFC 821 format.
Reimplemented from smtpd.SMTPServer.
Definition at line 14 of file test_smtpd.py.
00015 def process_message(self, peer, mailfrom, rcpttos, data):
00016 self.messages.append((peer, mailfrom, rcpttos, data))
00017 if data == 'return status':
00018 return '250 Okish'
Member Data Documentation
The documentation for this class was generated from the following file: