]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Properly register DKIM trace symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Jul 2018 14:30:10 +0000 (15:30 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Jul 2018 14:30:10 +0000 (15:30 +0100)
src/plugins/dkim_check.c

index 299382e723ef4669e65e554fcbd3b4d1cb569e0b..3993d7bc469e445d5213906819b6923bc4f6ae1b 100644 (file)
@@ -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 "