Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module smtp :: Class SMTP |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ | SMTP
DomainSMTP
Method Summary | |
---|---|
__init__(self)
| |
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. | |
Called when a connection is made. | |
dataLineReceived(self,
line)
| |
Protocol.dataReceived. (inherited from LineReceiver )
| |
do_DATA(self,
rest)
| |
do_HELO(self,
rest)
| |
do_MAIL(self,
rest)
| |
do_QUIT(self,
rest)
| |
do_RCPT(self,
rest)
| |
do_RSET(self,
rest)
| |
do_UNKNOWN(self,
rest)
| |
Called when the maximum line length has been reached. | |
Override this for when each line is received. | |
Throw away rest of long line | |
receivedHeader(self,
helo,
origin,
recipents)
| |
rfc822date(self)
| |
Send an SMTP code with a message. | |
Sends a line to the other end of the connection. (inherited from LineReceiver )
| |
Sets the line-mode of this receiver. (inherited from LineReceiver )
| |
Sets the raw mode of this receiver. (inherited from LineReceiver )
| |
startMessage(self,
recipients)
| |
timedout(self)
| |
validateFrom(self,
helo,
origin,
success,
failure)
| |
validateTo(self,
user,
success,
failure)
|
Class Variable Summary | |
---|---|
SRE_Pattern |
mail_re
|
string |
qstring
|
SRE_Pattern |
rcpt_re
|
Method Details |
---|
connectionLost(self, reason)Called when the connection is shut down. Clear any circular references here, and any external references to this Protocol. The connection has been closed.
|
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.
|
lineLengthExceeded(self, line)Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way.
|
lineReceived(self, line)Override this for when each line is received.
|
rawDataReceived(self, data)Throw away rest of long line |
sendCode(self, code, message='')Send an SMTP code with a message. |
Class Variable Details |
---|
mail_re
|
qstring
|
rcpt_re
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:18:02 2003 | http://epydoc.sf.net |