Package buildbot :: Package changes :: Module mail :: Class MaildirSource
[frames] | no frames]

Class MaildirSource

source code

 twisted.application.service.Service --+        
                                       |        
twisted.application.service.MultiService --+    
                                           |    
                      maildir.MaildirService --+
                                               |
                        util.ComparableMixin --+
                                               |
                                              MaildirSource
Known Subclasses:

This source will watch a maildir that is subscribed to a FreshCVS change-announcement mailing list.

Instance Methods
 
__init__(self, maildir, prefix=None, category='', repository='')
Create the Maildir watcher.
source code
 
describe(self) source code
 
messageReceived(self, filename)
Called when a new file is noticed.
source code
 
parse_file(self, fd, prefix=None) source code

Inherited from maildir.MaildirService: dnotify_callback, poll, setBasedir, startService, stopService

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  compare_attrs = ['basedir', 'pollinterval', 'prefix']
  name = None
hash(x)
  __implemented__ = <implementedBy buildbot.changes.mail.Maildir...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

Inherited from maildir.MaildirService: pollinterval

Inherited from twisted.application.service.Service: parent, running

Method Details

__init__(self, maildir, prefix=None, category='', repository='')
(Constructor)

source code 

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

Overrides: twisted.application.service.MultiService.__init__

messageReceived(self, filename)

source code 

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.

Overrides: maildir.MaildirService.messageReceived
(inherited documentation)

Class Variable Details

__implemented__

Value:
<implementedBy buildbot.changes.mail.MaildirSource>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x4d1f050>