]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission-login: cmd_helo_reply() - Only check against SMTP UTF8 if feature is enabled
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Fri, 16 May 2025 13:23:27 +0000 (15:23 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 22 May 2025 11:24:01 +0000 (11:24 +0000)
Issued by coverity deadcode error.

src/submission-login/client-authenticate.c

index 6c5a0b81c620e28775d1ef20d28f52f3fbc8022e..243c00d6f7cb541803ae249d051dcef91f87f771 100644 (file)
@@ -51,9 +51,11 @@ static void cmd_helo_reply(struct submission_client *subm_client,
                                "AUTH", "%s", str_c(param));
                }
 
+#ifdef EXPERIMENTAL_MAIL_UTF8
                if ((backend_caps & SMTP_CAPABILITY_SMTPUTF8) != 0 &&
                    subm_client->set->mail_utf8_extensions)
                        smtp_server_reply_ehlo_add(reply, "SMTPUTF8");
+#endif /* EXPERIMENTAL_MAIL_UTF8 */
                if ((backend_caps & SMTP_CAPABILITY_BINARYMIME) != 0 &&
                    (backend_caps & SMTP_CAPABILITY_CHUNKING) != 0)
                        smtp_server_reply_ehlo_add(reply, "BINARYMIME");