class documentation

class BrokenMessage: (source)

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): (source)

Undocumented

def connectionLost(self): (source)

Handle message truncated.

semantics should be to discard the message

def eomReceived(self): (source)

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): (source)

Handle another line.