IMAP: Fix interaction of UNSELECT and [CLOSED]
commit6fe9849beb0caa8646b5eb7b57c1457b4f3ef3eb
authorJan Kundrát <jkt@flaska.net>
Tue, 9 Sep 2014 14:54:00 +0000 (9 16:54 +0200)
committerJan Kundrát <jkt@flaska.net>
Wed, 10 Sep 2014 09:41:30 +0000 (10 11:41 +0200)
tree7dfefce91f48f0bb91cdf3e4e310cc69af69ac9d
parent4cca633e65d7cf0e6efdbe036aaae44d4e2abed2
IMAP: Fix interaction of UNSELECT and [CLOSED]

There was a regression introduced by Ief931474c2d1b5e053f027146f5d4a339fbfe0b3
where UNSELECT would accidentally leave the connection in such a state where it
would complain if the subsequent SELECT did not include a [CLOSED] response
code. That doesn't make sense, of course -- the mailbox gets unselected at that
point, and we're now in the CONN_STATE_AUTHENTICATED.

Change-Id: I7d45c9815237969b1e4a773edc83fb09f199420e
src/Imap/Tasks/KeepMailboxOpenTask.cpp
tests/Imap/test_Imap_Tasks_ObtainSynchronizedMailbox.cpp
tests/Imap/test_Imap_Tasks_ObtainSynchronizedMailbox.h