Package trac :: Package tests :: Module notification :: Class SMTPServerInterface

Class SMTPServerInterface

source code

object --+
         |
        SMTPServerInterface
Known Subclasses:

A base class for the implementation of an application specific SMTP Server. Applications should subclass this and override these methods, which by default do nothing.

A method is defined for each RFC821 command. For each of these methods, 'args' is the complete command received from the client. The 'data' method is called after all of the client DATA is received.

If a method returns 'None', then a '250 OK' message is automatically sent to the client. If a subclass returns a non-null string then it is returned instead.

Instance Methods
 
helo(self, args) source code
 
mail_from(self, args) source code
 
rcpt_to(self, args) source code
 
data(self, args) source code
 
quit(self, args) source code
 
reset(self, args) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__