// check if the mailbox exists, if not create it
if (!manager.mailboxExists(inbox, mSession)) {
manager.createMailbox(inbox, mSession);
}
MessageManager mailbox = manager.getMailbox(MailboxPath.inbox(mSession), mSession);
return new MailboxAdapter(manager, mailbox, mSession);
} catch (BadCredentialsException e) {
return null;
} catch (MailboxException e) {
throw new IOException("Unable to access mailbox for user " + session.getUser(), e);
} finally {