Package Honey :: Package Fakes :: Package SMTP :: Module base_smtp :: Class FakeSMTP
[show private | hide private]
[frames | no frames]

Class FakeSMTP

  object --+            
           |            
BaseProtocol --+        
               |        
     RawProtocol --+    
                   |    
        LineProtocol --+
                       |
                      FakeSMTP


Define the SMTP protocol
Method Summary
a new object with type S, a subtype of T __new__(S, ...)
  connectionEstablished(self)
Callback
  connectionLost(self)
Callback
  dataReceived(self, data)
Process received data into lines (inherited from LineProtocol)
  do_AUTH(self, args)
Callback
  do_DATA(self, args)
Callback
  do_DSN(self, args)
Callback
  do_EHLO(self, args)
Callback
  do_ERROR(self, cmd, args)
Callback
  do_ETRN(self, args)
Callback
  do_EXPN(self, args)
Callback
  do_HELO(self, args)
Callback
  do_HELP(self, args)
Callback
  do_MAIL(self, args)
Callback
  do_NOOP(self, args)
Callback
  do_QUIT(self, args)
Callback
  do_RCPT(self, args)
Callback
  do_RSET(self, args)
Callback
  do_STARTTLS(self, args)
Callback
  do_VERB(self, args)
Callback
  do_VRFY(self, args)
Callback
  lineLengthExceeded(self, line)
Callback called when a line exceeeds max length (inherited from LineProtocol)
  lineReceived(self, line)
Callback
  rawDataReceived(self, data)
Callback (inherited from LineProtocol)
  reset(self)
Called to reset session state, after sending message
  sendline(self, line)
Send a line. (inherited from LineProtocol)
  sendlines(self, lines)
Helper method
  setLineMode(self, extra)
Enter line mode (inherited from LineProtocol)
  setRawMode(self)
Enter Raw mode (inherited from LineProtocol)

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

connectionEstablished(self)

Callback

called when client connects

connectionLost(self)

Callback

called upon disconnection

do_AUTH(self, args)

Callback

called upon AUTH command

do_DATA(self, args)

Callback

called upon DATA command

do_DSN(self, args)

Callback

called upon DSN command

do_EHLO(self, args)

Callback

called upon EHLO command

do_ERROR(self, cmd, args)

Callback

called on any invalid command error

do_ETRN(self, args)

Callback

called upon ETRN command

do_EXPN(self, args)

Callback

called upon EXPN command

do_HELO(self, args)

Callback

called upon HELO command

do_HELP(self, args)

Callback

called upon HELP command

do_MAIL(self, args)

Callback

called upon MAIL command

do_NOOP(self, args)

Callback

called upon NOOP command

do_QUIT(self, args)

Callback

called upon QUIT command

do_RCPT(self, args)

Callback

called upon RCPT command

do_RSET(self, args)

Callback

called upon RSET command

do_STARTTLS(self, args)

Callback

called upon STARTTLS command

do_VERB(self, args)

Callback

called upon VERB command

do_VRFY(self, args)

Callback

called upon VRFY command

lineReceived(self, line)

Callback

called when client sends data

reset(self)

Called to reset session state, after sending message

sendlines(self, lines)

Helper method

if lines is a string, send it if lines is a tuple or list, send each string

Generated by Epydoc 1.1 on Sun Dec 7 16:06:00 2003 http://epydoc.sf.net