[IMAPx] More pending-IDLE-detection related changes ][
[IMAPx] More pending-IDLE-detection related changes ][

If the IDLE issued a SELECT command, and then it was cancelled, thus
the SELECT wasn't finished, then the next command could be run
in a wrong mailbox. Better to disconnect and open a new connection.

tintou/evolution-data-server,tintou/evolution-data-server,matzipan/evolution-data-server,matzipan/evolution-data-server,tintou/evolution-data-server,matzipan/evolution-data-server,matzipan/evolution-data-server,matzipan/evolution-data-server,tintou/evolution-data-server