parameters: (self, dirname, factory=rfc822.Message, create=True)
docstring: Initialize a Maildir instance.
docstring_summary: Initialize a Maildir instance.
docstring_tokens: Initialize a Maildir instance .
function: def __init__(self, dirname, factory=rfc822.Message, 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, 0700)
                  for path in self._paths.values():
                      os.mkdir(path, 0o700)
              else:
                  raise NoSuchMailboxError(self._path)
          self._toc = {}
          self._toc_mtimes = {}
          for subdir in ('cur', 'new'):
              self._toc_mtimes[subdir] = os.path.getmtime(self._paths[subdir])
          self._last_read = time.time()  # Records last time we read cur/new
          self._skewfactor = 0.1
function_tokens: 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 , 0700 ) for path in self . _paths . values ( ) : os . mkdir ( path , 0o700 ) else : raise NoSuchMailboxError ( self . _path ) self . _toc = { } self . _toc_mtimes = { } for subdir in ( 'cur' , 'new' ) : self . _toc_mtimes [ subdir ] = os . path . getmtime ( self . _paths [ subdir ] ) self . _last_read = time . time ( ) # Records last time we read cur/new self . _skewfactor = 0.1