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