From: Vsevolod Stakhov Date: Wed, 10 Aug 2016 20:29:53 +0000 (+0100) Subject: [Fix] Do not show rmilter section as a fake metric in rspamc X-Git-Tag: 1.3.3~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d40c69e505fd7b47be65c1f3741907bf8f9af612;p=rspamd.git [Fix] Do not show rmilter section as a fake metric in rspamc --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index b9fe5ff54..bad266b9e 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -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); }