]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not show rmilter section as a fake metric in rspamc
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Aug 2016 20:29:53 +0000 (21:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Aug 2016 20:29:53 +0000 (21:29 +0100)
src/client/rspamc.c

index b9fe5ff545c308d781a41527f38119ea93852b32..bad266b9e82149c4f2f43debefd9b06b5f4b86cf 100644 (file)
@@ -642,7 +642,8 @@ rspamc_symbols_output (FILE *out, ucl_object_t *obj)
                        rspamd_fprintf (out, "DKIM-Signature: %s\n", ucl_object_tostring (
                                        cur));
                }
-               else if (cur->type == UCL_OBJECT) {
+               else if (cur->type == UCL_OBJECT &&
+                               g_ascii_strcasecmp (ucl_object_key (cur), "rmilter") != 0) {
                        /* Parse metric */
                        rspamc_metric_output (out, cur);
                }