folded_symbuf = rspamd_header_value_fold ("X-Spam-Symbols",
symbuf->str,
0);
- rspamd_printf_gstring (added_headers, "X-Spam-Symbols: %V\r\n",
+ rspamd_printf_gstring (added_headers, "X-Spam-Symbols: %v\r\n",
folded_symbuf);
g_string_free (folded_symbuf, TRUE);
g_string_free (symbuf, TRUE);
/* Write message */
if (rspamd_fprintf (out, "%*s", (gint)headers_pos, input->str)
== headers_pos) {
- if (rspamd_fprintf (out, "%V", added_headers) == (gint)added_headers->len) {
+ if (rspamd_fprintf (out, "%v", added_headers)
+ == (gint)added_headers->len) {
rspamd_fprintf (out, "%s", input->str + headers_pos);
}
}
id = strtoul (idstr->str, &errstr, 10);
if (*errstr != '\0' && !g_ascii_isspace (*errstr)) {
- msg_info_session ("invalid map id: %V", idstr);
+ msg_info_session ("invalid map id: %v", idstr);
rspamd_controller_send_error (conn_ent, 400, "Map id is invalid");
return 0;
}
cmd = g_hash_table_lookup (session->ctx->custom_commands, msg->url->str);
if (cmd == NULL || cmd->handler == NULL) {
- msg_err_session ("custom command %V has not been found", msg->url);
+ msg_err_session ("custom command %v has not been found", msg->url);
rspamd_controller_send_error (conn_ent, 404, "No command associated");
return 0;
}
while (cur && r < buflen - 3) {
arg = cur->data;
- r += rspamd_snprintf (buf + r, buflen - r, " %V", arg);
+ r += rspamd_snprintf (buf + r, buflen - r, " %T", arg);
cur = g_list_next (cur);
}
gchar outbuf[BUFSIZ];
gint r;
- msg_debug ("in: %V, state: %d", in, session->upstream_state);
+ msg_debug ("in: %T, state: %d", in, session->upstream_state);
switch (session->upstream_state) {
case SMTP_STATE_GREETING:
r = check_smtp_ustream_reply (in, '2');
return FALSE;
break;
default:
- msg_err ("got upstream reply at unexpected state: %d, reply: %V",
+ msg_err ("got upstream reply at unexpected state: %d, reply: %T",
session->upstream_state,
in);
session->state = SMTP_STATE_CRITICAL_ERROR;
if (level == 0) {
r = rspamd_snprintf (result,
len,
- "%V",
+ "%T",
hostname);
}
else {
else {
r = rspamd_snprintf (result,
len,
- "%V",
+ "%T",
hostname);
}
}