imap fixes for 0.8, connects to a server correctly