]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Thu, 18 Jan 2018 10:06:10 +0000 (12:06 +0200)
src/lib-imap-client/imapc-connection.c

index 736476cd29f305ec053b2596e7ef297b7f65b3fe..4dbb69637bdae19f6fb558147b58fc67d4083a86 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;