Filter out invalid IMAP responses
To prevent Meddlers-in-the-middle injecting fake untagged responses,
for example untagged LIST replies sent before the IMAP connection
has reachead the Selected state described in RFC 3501 3.3.
These untagged responses would later be processed after a command
had succeeded.
BUG: 432353