'Initialize a Maildir instance.'

def __init__(self, dirname, factory=rfc822.Message, 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, 448)
            for path in self._paths.values():
                os.mkdir(path, 448)
        else:
            raise NoSuchMailboxError(self._path)
    self._toc = {}
    self._toc_mtimes = {'cur': 0, 'new': 0}
    self._last_read = 0
    self._skewfactor = 0.1
