Interface t.m.s.IMessage(Interface):

Part of twisted.mail.smtp View Source View In Hierarchy

Known implementations: twisted.mail.alias.FileWrapper, twisted.mail.alias.MessageWrapper, twisted.mail.alias.MultiWrapper, twisted.mail.mail.FileMessage
Interface definition for messages that can be sent via SMTP.
Method lineReceived handle another line
Method eomReceived handle end of message
Method connectionLost handle message truncated
def lineReceived(line): (source)
handle another line
def eomReceived(): (source)

handle end of message

return a deferred. The deferred should be called with either: callback(string) or errback(error)
def connectionLost(): (source)

handle message truncated

semantics should be to discard the message
API Documentation for twisted, generated by pydoctor.