Logo Search packages:      
Sourcecode: mailcrypt version File versions  Download package

def watcher::DirWatcher::messageReceived (   self,
  filename 
)
Called when a new file is noticed. Override it in subclasses.

Reimplemented from maildir::Maildir.

Definition at line 95 of file watcher.py.

                                   :
        # name is relative to the directory being watched
        #print "messageReceived", self.basedir, name
        filename = os.path.join(self.basedir, name)
        mtime = os.stat(filename)[stat.ST_MTIME]
        fd = open(filename)
        self.parseMessage(filename, name, mtime, fd.readlines())
        fd.close()


Generated by  Doxygen 1.6.0   Back to index