Up to SSL...
- Better error reporting.
- Support for (STARTTLS) IMAP connections. This doesn't work on startup though, because the SSL plugin is not yet loaded (it loads in a separate thread) the initial IMAP connection fails. If you do a manual connect later it will work ok.