]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: Amend ID cmd response with trust-state
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Tue, 18 Oct 2022 06:39:43 +0000 (08:39 +0200)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Tue, 25 Oct 2022 14:35:58 +0000 (16:35 +0200)
src/imap-login/imap-login-cmd-id.c

index 809661ab25804c34eebb92f8809eafd3fad8f6df..443b90d071b5dc498c257754c2968221bd992782 100644 (file)
@@ -210,7 +210,10 @@ static void cmd_id_finish(struct imap_client *client)
        client_send_raw(&client->common,
                t_strdup_printf("* ID %s\r\n",
                        imap_id_reply_generate(client->set->imap_id_send)));
-       client_send_reply(&client->common, IMAP_CMD_REPLY_OK, "ID completed.");
+       const char *msg = "ID completed.";
+       if (client->common.trusted)
+               msg = "Trusted ID completed.";
+       client_send_reply(&client->common, IMAP_CMD_REPLY_OK, msg);
 }
 
 static void cmd_id_free(struct imap_client *client)