]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: Send imap_id_received event even when ID command had no parameters
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 2 Feb 2026 10:01:50 +0000 (12:01 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 6 Feb 2026 07:58:43 +0000 (07:58 +0000)
It could still be useful to know.

src/imap-login/imap-login-cmd-id.c

index 14adbdffede3e212676c1c3297129a652a445fa0..645f7c1aa92b1896caa5038ab41c2ada7b083192 100644 (file)
@@ -293,12 +293,10 @@ static void cmd_id_finish(struct imap_client *client)
        if (!client->id_logged) {
                client->id_logged = TRUE;
 
-               if (str_len(client->cmd_id->log_reply) > 0) {
-                       e_debug(client->cmd_id->params_event,
-                               "Pre-login ID sent: %s",
-                               str_sanitize(str_c(client->cmd_id->log_reply),
-                                            IMAP_ID_PARAMS_LOG_MAX_LEN));
-               }
+               e_debug(client->cmd_id->params_event,
+                       "Pre-login ID sent: %s",
+                       str_sanitize(str_c(client->cmd_id->log_reply),
+                                    IMAP_ID_PARAMS_LOG_MAX_LEN));
        }
 
        client_send_raw(&client->common,