IMAP: Add a proper state for waiting for a CLOSED response code
commit865667edb1f05d4844aafe1ae35919ce6b0094a1
authorJan Kundrát <jkt@flaska.net>
Sat, 6 Sep 2014 10:30:04 +0000 (6 12:30 +0200)
committerJan Kundrát <jkt@flaska.net>
Mon, 8 Sep 2014 07:29:38 +0000 (8 09:29 +0200)
treef45289e7da1386e005746d5ea1e7d897dc6291bc
parent39f98861cec1cba192171b6ad998328b16106c46
IMAP: Add a proper state for waiting for a CLOSED response code

The CONN_STATE_SELECTING_WAIT_FOR_CLOSED describes a state where the
SELECT/EXAMINE command was already issued, but the IMAP state machine waits for
a CLOSED response code to know that the previously open mailbox was finally
closed, and any subsequent responses describe the new one.

v2: Don't call it "another mailbox" as this state will be used when opening a
mailbox for the first time as well.

Change-Id: I53f33c6667f14d154b5c4ba7a68cfffb8552f0ad
src/Imap/ConnectionState.cpp
src/Imap/ConnectionState.h
src/Imap/Tasks/OpenConnectionTask.cpp
src/XtConnect/XtConnect.cpp