From: Vsevolod Stakhov Date: Wed, 2 Nov 2016 13:47:17 +0000 (+0000) Subject: [Feature] Support new messages in rspamc X-Git-Tag: 1.4.0~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2cce3e4957605add64cd2bdfbc92db41dbc2dcc;p=thirdparty%2Frspamd.git [Feature] Support new messages in rspamc --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 7e60885ea2..eda1d2f9ef 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -637,11 +637,11 @@ rspamc_symbols_output (FILE *out, ucl_object_t *obj) cur)); } else if (g_ascii_strcasecmp (ucl_object_key (cur), "messages") == 0) { - if (cur->type == UCL_ARRAY) { + if (cur->type == UCL_OBJECT) { mit = NULL; while ((cmesg = ucl_object_iterate (cur, &mit, true)) != NULL) { - rspamd_fprintf (out, "Message: %s\n", - ucl_object_tostring (cmesg)); + rspamd_fprintf (out, "Message - %s: %s\n", + ucl_object_key (cmesg), ucl_object_tostring (cmesg)); } } }