commit 5d546fd: [Minor] antivirus/ext_services - add default scores

Carsten Rosenberg c.rosenberg at heinlein-support.de
Mon Mar 22 10:21:06 UTC 2021


Author: Carsten Rosenberg
Date: 2021-03-22 11:11:12 +0100
URL: https://github.com/rspamd/rspamd/commit/5d546fde273b815d976fd2eccf37a49a2e3471bb (refs/pull/3681/head)

[Minor] antivirus/ext_services - add default scores

---
 src/plugins/lua/antivirus.lua         | 4 ++++
 src/plugins/lua/external_services.lua | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua
index 0dad933b9..18d41dbb6 100644
--- a/src/plugins/lua/antivirus.lua
+++ b/src/plugins/lua/antivirus.lua
@@ -215,6 +215,7 @@ if opts and type(opts) == 'table' then
                     type = 'virtual',
                     name = sym,
                     parent = id,
+                    score = 0.0,
                     group = N
                   })
                 end
@@ -226,6 +227,7 @@ if opts and type(opts) == 'table' then
                 type = 'virtual',
                 name = sym,
                 parent = id,
+                score = 0.0,
                 group = N
               })
             end
@@ -247,6 +249,7 @@ if opts and type(opts) == 'table' then
                     type = 'virtual',
                     name = sym,
                     parent = id,
+                    score = 0.0,
                     group = N
                   })
                 end
@@ -258,6 +261,7 @@ if opts and type(opts) == 'table' then
                 type = 'virtual',
                 name = sym,
                 parent = id,
+                score = 0.0,
                 group = N
               })
             end
diff --git a/src/plugins/lua/external_services.lua b/src/plugins/lua/external_services.lua
index 2dd55e360..0157d15a9 100644
--- a/src/plugins/lua/external_services.lua
+++ b/src/plugins/lua/external_services.lua
@@ -273,6 +273,7 @@ if opts and type(opts) == 'table' then
                     type = 'virtual',
                     name = sym,
                     parent = id,
+                    score = 0.0,
                     group = N
                   })
                 end
@@ -284,6 +285,7 @@ if opts and type(opts) == 'table' then
                 type = 'virtual',
                 name = sym,
                 parent = id,
+                score = 0.0,
                 group = N
               })
             end
@@ -304,6 +306,7 @@ if opts and type(opts) == 'table' then
                     type = 'virtual',
                     name = sym,
                     parent = id,
+                    score = 0.0,
                     group = N
                   })
                 end
@@ -315,6 +318,7 @@ if opts and type(opts) == 'table' then
                 type = 'virtual',
                 name = sym,
                 parent = id,
+                score = 0.0,
                 group = N
               })
             end


More information about the Commits mailing list