Home | Trees | Indices | Help |
|
---|
|
object --+ | threading._Verbose --+ | threading.Thread --+ | Pool --+ | MailPool
Mail delivery thread pool.
This class delivers messages from a queue using the Dispatch class.
Example usage:import turbomail pool = turbomail.MailPool() message = turbomail.Message( "from@localhost", "to@localhost", "Subject" ) message.plain = "Hello world!" pool.enqueue(message) # wait for message to send pool.shutdown()
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Deliver up to jobs messages per queue. If there are no messages available in the queue, the worker will wait up to timeout seconds for data. If the timeout expires, the thread will exit gracefully.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Dec 19 20:56:15 2007 | http://epydoc.sourceforge.net |