IMAP Java client implementation