Home | Trees | Indices | Help |
|
---|
|
twisted.application.service.Service --+ | twisted.application.service.MultiService --+ | MaildirService
I watch a maildir for new messages. I should be placed as the service child of some MultiService instance. When running, I use the linux dirwatcher API (if available) or poll for new files in the 'new' subdirectory of my maildir path. When I discover a new message, I invoke my .messageReceived() method with the short filename of the new message, so the full name of the new file can be obtained with os.path.join(maildir, 'new', filename). messageReceived() should be overridden by a subclass to do something useful. I will not move or delete the file on my own: the subclass's messageReceived() should probably do that.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
pollinterval = 10
|
|
__implemented__ = <implementedBy buildbot.changes.maildir.Mail
|
|
__provides__ = <zope.interface.declarations.ClassProvides obje
|
|
Inherited from |
Method Details |
Create the Maildir watcher. BASEDIR is the maildir directory (the one which contains new/ and tmp/)
|
|
|
Called when a new file is noticed. Will call self.parent.messageReceived() with a path relative to maildir/new. Should probably be overridden in subclasses. |
Class Variable Details |
__implemented__
|
__provides__
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 25 17:52:20 2010 | http://epydoc.sourceforge.net |