make exception-throwing optional in IMAP mailbox()