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

def maildir::Maildir::start (   self ) [inherited]
You must run start to receive any messages.

Definition at line 29 of file maildir.py.

                   :
        """You must run start to receive any messages."""
        if self.running:
            return
        self.running = 1
        if not os.path.isdir(self.basedir) or not os.path.isdir(self.newdir):
            raise "invalid maildir '%s'" % basedir
        # we must hold an fd open on the directory, so we can get notified
        # when it changes.
        if have_dnotify:
            self.dnotify = DNotify(self.newdir, self.dnotify_callback,
                                   [DNotify.DN_CREATE])
        self.poll()


Generated by  Doxygen 1.6.0   Back to index