aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-02 13:47:17 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-02 13:47:17 +0000
commitd2cce3e4957605add64cd2bdfbc92db41dbc2dcc (patch)
treec589339229a908b3bffa412aad9eb7416d458ebf
parenta1bdb1f4f56ea6b3877e9c9d030d085728f0d566 (diff)
downloadrspamd-d2cce3e4957605add64cd2bdfbc92db41dbc2dcc.tar.gz
rspamd-d2cce3e4957605add64cd2bdfbc92db41dbc2dcc.zip
[Feature] Support new messages in rspamc
-rw-r--r--src/client/rspamc.c6
1 files changed, 3 insertions, 3 deletions
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));
}
}
}