IMAP Login: BAD Command received in Invalid state.
This error can happen if you connect to an IMAP server without SSL/TLS (i.e. at port 143) but the server does not allow unsecure sessions. Oddly enough, the Microsoft Exchange IMAP4 server will accept the connection, but will fail any login attempt with this error. Here is a sample SessionLog: Connecting to IMAP server at xxxx.com:143 > —-IMAP RESPONSE—- > […]