]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: When disconnecting due to FETCH failure, include "FETCH" in the log message.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 8 Mar 2017 14:28:14 +0000 (09:28 -0500)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 16 Mar 2017 17:41:06 +0000 (19:41 +0200)
src/imap/cmd-fetch.c

index 247f0abfb56c8474b174e069a0f1f37ed4c8b440..036ba1355011542b782814c77009f68e4ec04d96 100644 (file)
@@ -246,7 +246,8 @@ static bool cmd_fetch_finish(struct imap_fetch_context *ctx,
                           requests, because many IMAP clients become confused
                           about what they should on NO. A disconnection causes
                           less confusion. */
-                       client_disconnect_with_error(cmd->client, errstr);
+                       client_disconnect_with_error(cmd->client,
+                               t_strconcat("FETCH failed: ", errstr, NULL));
                        imap_fetch_free(&ctx);
                        return TRUE;
                } else {