Package buildbot :: Package changes :: Module maildir :: Class Maildir
[frames | no frames]

Class Maildir

Known Subclasses:
MaildirGtk, MaildirTwisted

This is a class which watches a maildir for new messages. Once started, it will run its .messageReceived method when a message is available.
Method Summary
  __init__(self, basedir)
Create the Maildir watcher.
  dnotify_callback(self)
  messageReceived(self, filename)
Called when a new file is noticed.
  poll(self)
  setBasedir(self, basedir)
  start(self)
You must run start to receive any messages.
  startTimeout(self)
  stop(self)
  stopTimeout(self)

Method Details

__init__(self, basedir=None)
(Constructor)

Create the Maildir watcher. BASEDIR is the maildir directory (the one which contains new/ and tmp/)

messageReceived(self, filename)

Called when a new file is noticed. Override it in subclasses. Will receive path relative to maildir/new.

start(self)

You must run start to receive any messages.

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net