(self, dirname, factory=None, create=True)
Initialize a Maildir instance.
Initialize a Maildir instance.
Initialize a Maildir instance .
def __init__(self, dirname, factory=None, create=True):
        """Initialize a Maildir instance."""
        Mailbox.__init__(self, dirname, factory, create)
        self._paths = {
            'tmp': os.path.join(self._path, 'tmp'),
            'new': os.path.join(self._path, 'new'),
            'cur': os.path.join(self._path, 'cur'),
            }
        if not os.path.exists(self._path):
            if create:
                os.mkdir(self._path, 0o700)
                for path in self._paths.values():
                    os.mkdir(path, 0o700)
            else:
                raise NoSuchMailboxError(self._path)
        self._toc = {}
        self._toc_mtimes = {'cur': 0, 'new': 0}
        self._last_read = 0         # Records last time we read cur/new
        self._skewfactor = 0.1
def __init__ ( self , dirname , factory = None , create = True ) : Mailbox . __init__ ( self , dirname , factory , create ) self . _paths = { 'tmp' : os . path . join ( self . _path , 'tmp' ) , 'new' : os . path . join ( self . _path , 'new' ) , 'cur' : os . path . join ( self . _path , 'cur' ) , } if not os . path . exists ( self . _path ) : if create : os . mkdir ( self . _path , 0o700 ) for path in self . _paths . values ( ) : os . mkdir ( path , 0o700 ) else : raise NoSuchMailboxError ( self . _path ) self . _toc = { } self . _toc_mtimes = { 'cur' : 0 , 'new' : 0 } self . _last_read = 0 # Records last time we read cur/new self . _skewfactor = 0.1