class _AttemptManager: (source)
A manager for an attempt to relay a set of messages to a mail exchange server.
Instance Variable | manager |
See __init__ |
Method | __init__ |
|
Instance Variable | noisy |
Undocumented |
Instance Variable | reactor |
Undocumented |
Method | getCompletionDeferred |
Return a deferred which will fire when the attempt to relay is finished. |
Method | notifySuccess |
Remove a message from the relay queue after it has been successfully sent. |
Method | notifyFailure |
Generate a bounce message for a message which cannot be relayed. |
Method | notifyDone |
When the connection is lost or cannot be established, prepare to resend unsent messages and fire all deferred which are waiting for the completion of the attempt to relay. |
Method | notifyNoConnection |
When a connection to the mail exchange server cannot be established, prepare to resend messages later. |
Instance Variable | _completionDeferreds |
Deferreds which are to be notified when the attempt to relay is finished. |
Method | _finish |
Remove a message from the relay queue and from the smart host's list of messages being relayed. |
Parameters | manager | A smart host. (type: SmartHostSMTPRelayingManager ) |
noisy | A flag which determines whether informational log messages will be generated (True ) or not (False ). (type: bool ) | |
reactor | A reactor which will be used to schedule delayed calls. (type: IReactorTime provider) |
Return a deferred which will fire when the attempt to relay is finished.
Returns | A deferred which will fire when the attempt to relay is finished. (type: Deferred ) |
Remove a message from the relay queue and from the smart host's list of messages being relayed.
Parameters | relay | The factory for the relayer which sent the message. (type: SMTPManagedRelayerFactory ) |
message | The path of the file holding the message. (type: bytes ) |
Remove a message from the relay queue after it has been successfully sent.
Parameters | relay | The factory for the relayer which sent the message. (type: SMTPManagedRelayerFactory ) |
message | The path of the file holding the message. (type: bytes ) |
Generate a bounce message for a message which cannot be relayed.
Parameters | relay | The factory for the relayer responsible for the message. (type: SMTPManagedRelayerFactory ) |
message | The path of the file holding the message. (type: bytes ) |
When the connection is lost or cannot be established, prepare to resend unsent messages and fire all deferred which are waiting for the completion of the attempt to relay.
Parameters | relay | The factory for the relayer for the connection. (type: SMTPManagedRelayerFactory ) |
When a connection to the mail exchange server cannot be established, prepare to resend messages later.
Parameters | relay | The factory for the relayer meant to use the connection. (type: SMTPManagedRelayerFactory ) |