PAGE 20
The state of a connection is only changed by successful commands
which are documented as changing state. In particular, a failed (NO
response) or rejected (BAD response) command does not change the
state of the connection.
---
A failed SELECT command definitely changes the state of connection:
The SELECT command automatically deselects any
currently selected mailbox before attempting the new selection.
Consequently, if a mailbox is selected and a SELECT command that
fails is attempted, no mailbox is selected.
Sincerely,
Vladimir