From d2cce3e4957605add64cd2bdfbc92db41dbc2dcc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 2 Nov 2016 13:47:17 +0000 Subject: [Feature] Support new messages in rspamc --- src/client/rspamc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client') diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 7e60885ea..eda1d2f9e 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)); } } } -- cgit v1.2.3