]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Register some missing symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jun 2020 09:31:14 +0000 (10:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jun 2020 09:31:14 +0000 (10:31 +0100)
src/plugins/lua/asn.lua
src/plugins/lua/greylist.lua

index 89bc0dc851ee2905f4f937940e422b096cbbe7c9..4c7d73dbacbdbb77d1a1ab8bde941ce8dd6769bc 100644 (file)
@@ -137,6 +137,7 @@ if configure_asn_module() then
       parent = id,
       type = 'virtual',
       flags = 'empty',
+      score = 0,
     })
   end
 else
index faeaaf897b11b3898db433fb0edc6309121b5b06..152788175195cdcc058f0fa381f620cca885aa55 100644 (file)
@@ -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