gchar *b64_data;
guchar *rsa_buf;
guint rsa_len;
+ guint headers_len = 0;
g_assert (ctx != NULL);
NULL, NULL);
}
+ headers_len += (strlen (dh->name) + 1) * (dh->count + 1);
+
/* We allow oversigning if dh->count > number of headers with this name */
for (j = 0; j < dh->count + 1; j++) {
rspamd_printf_gstring (hdr, "%s:", dh->name);
}
+
+ if (headers_len > 60 && i < ctx->common.hlist->len - 1) {
+ rspamd_printf_gstring (hdr, " ");
+ headers_len = 0;
+ }
}
/* Replace the last ':' with ';' */