]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-client-connection - Rename SMTP_CLIENT_BASE_LINE_LENGTH_LIMIT to SMTP_...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 21 Feb 2022 20:29:23 +0000 (21:29 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 25 Feb 2022 08:12:27 +0000 (10:12 +0200)
src/lib-smtp/smtp-client-connection.c
src/lib-smtp/smtp-client-private.h

index b1f45ad426adaa2036f285ec78394b9f2ec72681..47862ad963aa9440e33a9ced8bbdffc706e175cf 100644 (file)
@@ -549,7 +549,7 @@ smtp_client_connection_xclient_add(struct smtp_client_connection *conn,
        smtp_xtext_encode_cstr(str, value);
 
        if (prev_offset == offset ||
-           str_len(str) <= SMTP_CLIENT_BASE_LINE_LENGTH_LIMIT)
+           str_len(str) <= SMTP_BASE_LINE_LENGTH_LIMIT)
                return;
 
        /* preserve field we just added */
@@ -963,7 +963,7 @@ smtp_client_connection_authenticate(struct smtp_client_connection *conn)
        if (str_len(sasl_output_base64) == 0)
                init_resp = "=";
        else if ((5 + strlen(mech_name) + 1 + str_len(sasl_output_base64)) >
-                SMTP_CLIENT_BASE_LINE_LENGTH_LIMIT)
+                SMTP_BASE_LINE_LENGTH_LIMIT)
                conn->sasl_ir = i_strdup(str_c(sasl_output_base64));
        else
                init_resp = str_c(sasl_output_base64);
index 3b864f1e42adb5a935fa04fc2a67b894a3e9ee16..9f2e563f39b5aa08249a33c65d71910274475fa9 100644 (file)
@@ -10,7 +10,7 @@
 #include "smtp-client-transaction.h"
 #include "smtp-client-connection.h"
 
-#define SMTP_CLIENT_BASE_LINE_LENGTH_LIMIT (512 - 2)
+#define SMTP_BASE_LINE_LENGTH_LIMIT (512 - 2)
 #define SMTP_CLIENT_DATA_CHUNK_SIZE IO_BLOCK_SIZE
 
 struct smtp_client_command {