aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-08 13:44:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-08 13:44:18 +0100
commit8402676ce759e40d66228cc5fdfc2e40cded91f3 (patch)
tree867a59eadaa4715d9a864e84eb1f43b13934a5e3 /src
parentfbe12e5c2dae119ee9e89fc193d61fd9ce1d693d (diff)
downloadrspamd-8402676ce759e40d66228cc5fdfc2e40cded91f3.tar.gz
rspamd-8402676ce759e40d66228cc5fdfc2e40cded91f3.zip
Use folding for symbols header.
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index a3d67a807..906eb568f 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -861,7 +861,7 @@ rspamc_mime_output (FILE *out, ucl_object_t *result, GString *input, GError *err
const ucl_object_t *cur, *metric, *res;
ucl_object_iter_t it = NULL;
const gchar *action = "no action";
- GString *symbuf;
+ GString *symbuf, *folded_symbuf;
gint act;
gdouble score = 0.0, required_score = 0.0;
gchar scorebuf[32];
@@ -951,10 +951,10 @@ rspamc_mime_output (FILE *out, ucl_object_t *result, GString *input, GError *err
g_string_erase (symbuf, symbuf->len - 1, 1);
}
- sc = g_mime_utils_header_encode_text (symbuf->str);
+ folded_symbuf = rspamd_header_value_fold ("X-Spam-Symbols", symbuf->str);
g_mime_object_append_header (GMIME_OBJECT (message), "X-Spam-Symbols",
- sc);
- g_free (sc);
+ folded_symbuf->str);
+ g_string_free (folded_symbuf, TRUE);
g_string_free (symbuf, TRUE);
if (json || raw) {