]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Update invocation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Dec 2021 16:25:19 +0000 (16:25 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Dec 2021 16:25:19 +0000 (16:25 +0000)
src/client/rspamc.c
src/libserver/protocol.c

index 4bb6321215acc998cda4e3ec26771ef0031e5bc1..3760c62e043267e4b2de4f97c9eea707be550476 100644 (file)
@@ -1383,8 +1383,8 @@ rspamc_mime_output (FILE *out, ucl_object_t *result, GString *input,
                        g_string_erase (symbuf, symbuf->len - 1, 1);
                }
 
-               folded_symbuf = rspamd_header_value_fold ("X-Spam-Symbols",
-                               symbuf->str,
+               folded_symbuf = rspamd_header_value_fold ("X-Spam-Symbols", strlen ("X-Spam-Symbols"),
+                               symbuf->str, symbuf->len,
                                0, nl_type, ",");
                rspamd_printf_gstring (added_headers, "X-Spam-Symbols: %v%s",
                                folded_symbuf, line_end);
index 65d0900df0b7166fb0eb6ddc765f0c4476e3d42f..eb82a743fb337529862c6a9132d1f45912eb10dd 100644 (file)
@@ -1512,12 +1512,16 @@ rspamd_protocol_write_ucl (struct rspamd_task *task,
                                        if (task->protocol_flags & RSPAMD_TASK_PROTOCOL_FLAG_MILTER ||
                                                !task->message) {
 
-                                               folded_header = rspamd_header_value_fold ("DKIM-Signature",
-                                                               dkim_sig->str, 80, RSPAMD_TASK_NEWLINES_LF, NULL);
+                                               folded_header = rspamd_header_value_fold (
+                                                               "DKIM-Signature", strlen ("DKIM-Signature"),
+                                                               dkim_sig->str, dkim_sig->len,
+                                                               80, RSPAMD_TASK_NEWLINES_LF, NULL);
                                        }
                                        else {
-                                               folded_header = rspamd_header_value_fold ("DKIM-Signature",
-                                                               dkim_sig->str, 80,
+                                               folded_header = rspamd_header_value_fold (
+                                                               "DKIM-Signature", strlen ("DKIM-Signature"),
+                                                               dkim_sig->str, dkim_sig->len,
+                                                               80,
                                                                MESSAGE_FIELD (task, nlines_type),
                                                                NULL);
                                        }
@@ -1539,12 +1543,16 @@ rspamd_protocol_write_ucl (struct rspamd_task *task,
                                dkim_sig = (GString *) dkim_sigs->data;
 
                                if (task->protocol_flags & RSPAMD_TASK_PROTOCOL_FLAG_MILTER) {
-                                       folded_header = rspamd_header_value_fold ("DKIM-Signature",
-                                                       dkim_sig->str, 80, RSPAMD_TASK_NEWLINES_LF, NULL);
+                                       folded_header = rspamd_header_value_fold (
+                                                       "DKIM-Signature", strlen ("DKIM-Signature"),
+                                                       dkim_sig->str, dkim_sig->len,
+                                                       80, RSPAMD_TASK_NEWLINES_LF, NULL);
                                }
                                else {
-                                       folded_header = rspamd_header_value_fold ("DKIM-Signature",
-                                                       dkim_sig->str, 80, MESSAGE_FIELD (task, nlines_type),
+                                       folded_header = rspamd_header_value_fold (
+                                                       "DKIM-Signature", strlen ("DKIM-Signature"),
+                                                       dkim_sig->str, dkim_sig->len,
+                                                       80, MESSAGE_FIELD (task, nlines_type),
                                                        NULL);
                                }