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

Class MaildirSource

source code

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

Generic base class for Maildir-based change sources

Instance Methods
 
__init__(self, maildir, prefix=None, category='', repository='')
Create the Maildir watcher.
source code
 
describe(self) source code
 
messageReceived(self, filename)
Process a received message.
source code
 
parse_file(self, fd, prefix=None) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from util.maildir.MaildirService: dnotify_callback, moveToCurDir, 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']
  __implemented__ = <implementedBy buildbot.changes.mail.Maildir...

Inherited from util.maildir.MaildirService: pollinterval

Inherited from twisted.application.service.Service: name, 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 

Process a received message. The filename is relative to self.newdir. Returns a Deferred.

Overrides: util.maildir.MaildirService.messageReceived
(inherited documentation)

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']

Overrides: util.ComparableMixin.__provides__

Class Variable Details

__implemented__

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