twisted.mail.relaymanager.Queue

Package twisted :: Package mail :: Module relaymanager :: Class Queue |
[frames | no frames]

## Class Queue

A queue of ougoing emails.

Method Summary
| `__init__(self, directory)`
| ``__getstate__`(self)` (internal) delete volatile state
| ``__setstate__`(self, state)` (internal) restore volatile state
| `_init(self)`
| `addMessage(self, message)`
| ``createNewMessage`(self)` Create a new message in the queue.
| ``done`(self, message)` Remove message to from queue.
| `getEnvelope(self, message)`
| `getEnvelopeFile(self, message)`
| ``getPath`(self, message)` Get the path in the filesystem of a message.
| `getRelayed(self)`
| `getWaiting(self)`
| `hasWaiting(self)`
| ``readDirectory`(self)` Read the messages directory.
| `setRelaying(self, message)`
| `setWaiting(self, message)`

Method Details

### __getstate__(self) (internal) delete volatile state

### __setstate__(self, state) (internal) restore volatile state

### createNewMessage(self) Create a new message in the queue. Return a tuple - file-like object for headers, and ISMTPMessage.

### done(self, message) Remove message to from queue.

### getPath(self, message) Get the path in the filesystem of a message.

### readDirectory(self) Read the messages directory. look for new messages.

Generated by Epydoc 2.0 on Sat May 15 20:08:12 2004 | http://epydoc.sf.net