imap: Added check for new internal imap response code