class documentation
class MessageWrapper: (source)
Implements interfaces: twisted.mail.interfaces.IMessageSMTP
A message receiver which delivers a message to a child process.
Method | __init__ |
No summary |
Method | __str__ |
Build a string representation of this MessageWrapper instance. |
Method | connection |
Ignore notification of lost connection. |
Method | eom |
Disconnect from the child process and set up a timeout to wait for it to exit. |
Method | line |
Write a received line to the child process. |
Instance Variable | completion |
The deferred which will be triggered by the protocol when the child process exits. |
Instance Variable | completion |
The number of seconds to wait for the child process to exit before reporting the delivery as a failure. |
Instance Variable | done |
A flag indicating whether the child process has exited (True) or not (False). |
Instance Variable | process |
The process name. |
Instance Variable | protocol |
See __init__ . |
Instance Variable | reactor |
A reactor which will be used to schedule timeouts. |
Method | _completion |
Handle the expiration of the timeout for the child process to exit by terminating the child process forcefully and issuing a failure to the completion deferred. |
Method | _process |
Record process termination and cancel the timeout call if it is active. |
Instance Variable | _timeout |
The call used to time out delivery, started when the connection to the child process is closed. |
Parameters | |
protocol:ProcessAliasProtocol | The protocol associated with the child process. |
process:bytes or None | The process name. |
reactor:None or IReactorTime provider | A reactor which will be used to schedule timeouts. |
Build a string representation of this MessageWrapper
instance.
Returns | |
bytes | A string containing the name of the process. |
Disconnect from the child process and set up a timeout to wait for it to exit.
Returns | |
Deferred | A deferred which will be called back when the child process exits. |
The number of seconds to wait for the child process to exit before reporting the delivery as a failure.
Handle the expiration of the timeout for the child process to exit by terminating the child process forcefully and issuing a failure to the completion
deferred.