class Net::IMAP::ResponseParseError::InvalidTaggedResponseError

Error raised when the server sends a tagged response that is invalid for the command state.

This could be caused by a bug in the server or in Net::IMAP. Or it might indicate a malicious server, a man-in-the-middle attack, or client-side command injection, so the client should disconnect automatically and abruptly (without logout).