commit 1c748c7: [Minor] Register some missing symbols

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Jun 12 09:35:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-06-12 10:31:14 +0100
URL: https://github.com/rspamd/rspamd/commit/1c748c7439566b01ff96ae1e58b54c2e11600120 (HEAD -> master)

[Minor] Register some missing symbols

---
 src/plugins/lua/asn.lua      | 1 +
 src/plugins/lua/greylist.lua | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua
index 89bc0dc85..4c7d73dba 100644
--- a/src/plugins/lua/asn.lua
+++ b/src/plugins/lua/asn.lua
@@ -137,6 +137,7 @@ if configure_asn_module() then
       parent = id,
       type = 'virtual',
       flags = 'empty',
+      score = 0,
     })
   end
 else
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index faeaaf897..152788175 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -497,11 +497,17 @@ if opts then
       callback = greylist_set,
       priority = 6,
     })
-    rspamd_config:register_symbol({
+    local id = rspamd_config:register_symbol({
       name = 'GREYLIST_CHECK',
       type = 'prefilter',
       callback = greylist_check,
       priority = 6,
     })
+    rspamd_config:register_symbol({
+      name = settings.symbol,
+      type = 'virtual',
+      parent = id,
+      score = 0,
+    })
   end
 end


More information about the Commits mailing list