private Mailbox loadMailbox(MailboxSession session,File mailboxFile,MailboxPath mailboxPath) throws MailboxException {
  MaildirFolder folder=new MaildirFolder(mailboxFile.getAbsolutePath(),mailboxPath,locker);
  folder.setMessageNameStrictParse(isMessageNameStrictParse());
  try {
    Mailbox loadedMailbox=new SimpleMailbox(mailboxPath,folder.getUidValidity());
    loadedMailbox.setACL(folder.getACL(session));
    return loadedMailbox;
  }
 catch (  IOException e) {
    throw new MailboxException("Unable to load Mailbox " + mailboxPath,e);
  }
}

private Mailbox loadMailbox ( MailboxSession session , File mailboxFile , MailboxPath mailboxPath ) throws MailboxException { MaildirFolder folder = new MaildirFolder ( mailboxFile . getAbsolutePath ( ) , mailboxPath , locker ) ; folder . setMessageNameStrictParse ( isMessageNameStrictParse ( ) ) ; try { Mailbox loadedMailbox = new SimpleMailbox ( mailboxPath , folder . getUidValidity ( ) ) ; loadedMailbox . setACL ( folder . getACL ( session ) ) ; return loadedMailbox ; } catch ( IOException e ) { throw new MailboxException ( "Unable to load Mailbox " + mailboxPath , e ) ; } }
creates a mailbox object with data loaded from the file system
