Package twisted :: Package test :: Module test_smtp :: Class DummySMTP
[show private | hide private]
[frames | no frames]

Class DummySMTP

BaseProtocol --+            
               |            
        Protocol --+        
                   |        
        LineReceiver --+    
                       |    
                    SMTP --+
                           |
                          DummySMTP


Method Summary
  __init__(self)
(inherited from SMTP)
  connectionFailed(self)
(Deprecated) (inherited from Protocol)
  connectionLost(self, reason)
(inherited from SMTP)
  connectionMade(self)
Called when a connection is made.
  dataLineReceived(self, line)
(inherited from SMTP)
  dataReceived(self, data)
Protocol.dataReceived. (inherited from LineReceiver)
  do_DATA(self, rest)
(inherited from SMTP)
  do_HELO(self, rest)
(inherited from SMTP)
  do_MAIL(self, rest)
(inherited from SMTP)
  do_QUIT(self, rest)
(inherited from SMTP)
  do_RCPT(self, rest)
(inherited from SMTP)
  do_RSET(self, rest)
(inherited from SMTP)
  do_UNKNOWN(self, rest)
(inherited from SMTP)
  lineLengthExceeded(self, line)
Called when the maximum line length has been reached. (inherited from SMTP)
  lineReceived(self, line)
Override this for when each line is received. (inherited from SMTP)
  makeConnection(self, transport)
Make a connection to a transport and a server. (inherited from BaseProtocol)
  rawDataReceived(self, data)
Throw away rest of long line (inherited from SMTP)
  receivedHeader(self, helo, origin, recipents)
(inherited from SMTP)
  rfc822date(self)
(inherited from SMTP)
  sendCode(self, code, message)
Send an SMTP code with a message. (inherited from SMTP)
  sendLine(self, line)
Sends a line to the other end of the connection. (inherited from LineReceiver)
  setLineMode(self, extra)
Sets the line-mode of this receiver. (inherited from LineReceiver)
  setRawMode(self)
Sets the raw mode of this receiver. (inherited from LineReceiver)
  startMessage(self, users)
  timedout(self)
(inherited from SMTP)
  validateFrom(self, helo, origin, success, failure)
(inherited from SMTP)
  validateTo(self, user, success, failure)
(inherited from SMTP)
  _fromInvalid(self, from_, code, msg)
(inherited from SMTP)
  _fromValid(self, from_, code, msg)
(inherited from SMTP)
  _messageHandled(self, _)
(inherited from SMTP)
  _messageNotHandled(self, _)
(inherited from SMTP)
  _toInvalid(self, to, code, msg)
(inherited from SMTP)
  _toValid(self, to, code, msg)
(inherited from SMTP)

Method Details

connectionMade(self)

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
Overrides:
twisted.protocols.smtp.SMTP.connectionMade (inherited documentation)

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:29:05 2003 http://epydoc.sf.net