[Imap-protocol] SELECT of same mailbox
Mark Crispin
mrc at CAC.Washington.EDU
Wed Sep 7 11:13:28 PDT 2005
On Wed, 7 Sep 2005, Cyrus Daboo wrote:
> I ask because the CMU server remains in the previous selected state, if a
> subsequent SELECT results in a 'BAD' response. It correctly leaves selected
> state if a subsequent SELECT results in a 'NO'.
That's the (only) correct behavior.
Sadly, a NO response from SELECT requires that an UNSELECT be done; this
is the result of a mistake made in RFC 1730. Nevertheless, this can only
happen because the command was recognized.
BAD means that the command isn't recognized due to syntax problems. In
order for a SELECT that returns BAD to have UNSELECT semantics, there
would have to be some sort of requirement that an unrecognized command be
"half-recognized". I hope that nobody wants to go there.
-- Mark --
http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
More information about the Imap-protocol
mailing list