]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Support new messages in rspamc
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 2 Nov 2016 13:47:17 +0000 (13:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 2 Nov 2016 13:47:17 +0000 (13:47 +0000)
src/client/rspamc.c

index 7e60885ea22c12514b97428b37dba8f4d4e26db5..eda1d2f9ef2a15ecafecfd1af3b76067fc2cbf00 100644 (file)
@@ -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));
                                }
                        }
                }