class documentation

class BrokenMessage:

Constructor: BrokenMessage(user)

Implements interfaces: twisted.mail.interfaces.IMessageSMTP

View In Hierarchy

BrokenMessage is an IMessage which raises an unexpected exception from its eomReceived method. This is useful for creating a server which can be used to test client retry behavior.

Method __init__ Undocumented
Method connectionLost Handle message truncated.
Method eomReceived Handle end of message.
Method lineReceived Handle another line.
def __init__(self, user):

Undocumented

def connectionLost(self):

Handle message truncated.

semantics should be to discard the message

def eomReceived(self):

Handle end of message.

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

Returns
DeferredUndocumented
def lineReceived(self, line):

Handle another line.