From: Vsevolod Stakhov Date: Mon, 23 Jul 2018 14:30:10 +0000 (+0100) Subject: [Minor] Properly register DKIM trace symbols X-Git-Tag: 1.7.9~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ecb4788ce06d5620f11e6461c8493f10e741eaa;p=rspamd.git [Minor] Properly register DKIM trace symbols --- diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 299382e72..3993d7bc4 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -506,6 +506,22 @@ dkim_module_config (struct rspamd_config *cfg) SYMBOL_TYPE_VIRTUAL|SYMBOL_TYPE_FINE, cb_id); + rspamd_symbols_cache_add_symbol (cfg->cache, + "DKIM_TRACE", + 0, + NULL, NULL, + SYMBOL_TYPE_VIRTUAL|SYMBOL_TYPE_NOSTAT, + cb_id); + rspamd_config_add_symbol (cfg, + "DKIM_TRACE", + 0.0, + "DKIM trace symbol", + "policies", + RSPAMD_SYMBOL_FLAG_IGNORE, + 1, + 1); + rspamd_config_add_symbol_group (cfg, "DKIM_TRACE", "dkim"); + msg_info_config ("init internal dkim module"); #ifndef HAVE_OPENSSL msg_warn_config ( @@ -552,11 +568,8 @@ dkim_module_config (struct rspamd_config *cfg) rspamd_config_add_symbol (cfg, "DKIM_SIGN", 0.0, "DKIM signature fake symbol", "dkim", RSPAMD_SYMBOL_FLAG_IGNORE, 1, 1); - rspamd_config_add_symbol (cfg, - "DKIM_TRACE", 0.0, "DKIM trace symbol", - "policies", RSPAMD_SYMBOL_FLAG_IGNORE, 1, 1); + rspamd_config_add_symbol_group (cfg, "DKIM_SIGN", "dkim"); - rspamd_config_add_symbol_group (cfg, "DKIM_TRACE", "dkim"); } else { msg_err_config ("lua script must return "