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

Class MaildirSource

 ComparableMixin --+
                   |
 Service --+       |
           |       |
MultiService --+   |
               |   |
  MaildirService --+
                   |
                  MaildirSource

Known Subclasses:
BonsaiMaildirSource, FCMaildirSource, SVNCommitEmailMaildirSource, SyncmailMaildirSource

This source will watch a maildir that is subscribed to a FreshCVS change-announcement mailing list.
Method Summary
  __init__(self, maildir, prefix)
  describe(self)
  messageReceived(self, filename)
Called when a new file is noticed.
  parse_file(self, fd, prefix)
    Inherited from MaildirService
  dnotify_callback(self)
  poll(self)
  setBasedir(self, basedir)
  startService(self)
  stopService(self)
    Inherited from MultiService
  __iter__(self)
  addService(self, service)
  getServiceNamed(self, name)
  privilegedStartService(self)
  removeService(self, service)
    Inherited from Service
  __getstate__(self)
  disownServiceParent(self)
  setName(self, name)
  setServiceParent(self, parent)
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Class Variable Summary
Implements __implemented__ = <implementedBy buildbot.changes.mail.M...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
list compare_attrs = ['basedir', 'pollinterval']
NoneType name = None                                                                  
    Inherited from MaildirService
int pollinterval = 10                                                                    
    Inherited from MultiService
_implementsTuple __implements__ = (<MetaInterface twisted.application.ser...
    Inherited from Service
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
NoneType parent = None                                                                  
int running = 0                                                                     

Method Details

messageReceived(self, filename)

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:
buildbot.changes.maildir.MaildirService.messageReceived (inherited documentation)

Class Variable Details

__implemented__

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

__provides__

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

compare_attrs

Type:
list
Value:
['basedir', 'pollinterval']                                            

name

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Tue Sep 16 09:16:00 2008 http://epydoc.sf.net