]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: Fix reason text when unselecting mailbox aborts commands
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 17 Jan 2018 13:02:09 +0000 (15:02 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 18 Jan 2018 07:12:30 +0000 (09:12 +0200)
src/lib-imap-client/imapc-connection.c

index c4be401fd2b52e21abcaafeeb3b2c266d1f8aee8..b67fdd520187b76abb70d54fbb01e48d7409b869 100644 (file)
@@ -338,8 +338,13 @@ void imapc_connection_abort_commands(struct imapc_connection *conn,
           callback recurses us back here we don't crash */
        i_zero(&reply);
        reply.state = IMAPC_COMMAND_STATE_DISCONNECTED;
-       reply.text_without_resp = reply.text_full =
-               "Disconnected from server";
+       if (only_box != NULL) {
+               reply.text_without_resp = reply.text_full =
+                       "Unselecting mailbox";
+       } else {
+               reply.text_without_resp = reply.text_full =
+                       "Disconnected from server";
+       }
        array_foreach(&tmp_array, cmdp) {
                cmd = *cmdp;