Fixed issues with CustomNet::IMAP class.