MDL-48623 messageinbound: Initial IMAP unit tests

Requires an IMAP server with a dedicated testing account.

api_docs_required