diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-13 01:10:11 +0100 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-13 01:10:11 +0100 |
commit | b2bd2eefe7514656fcdc193367ddd96ee4f979b3 (patch) | |
tree | 5aaf701a940ac2477443c95ab147d70e63576a0f /lualib/lua_scanners/kaspersky_av.lua | |
parent | 7848a14b949a7e54423998a9db2c45fc2d337f04 (diff) | |
download | rspamd-b2bd2eefe7514656fcdc193367ddd96ee4f979b3.tar.gz rspamd-b2bd2eefe7514656fcdc193367ddd96ee4f979b3.zip |
[Minor] lua_scanner - redis prefix (support for multiple rules of the same type)
Diffstat (limited to 'lualib/lua_scanners/kaspersky_av.lua')
-rw-r--r-- | lualib/lua_scanners/kaspersky_av.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lualib/lua_scanners/kaspersky_av.lua b/lualib/lua_scanners/kaspersky_av.lua index b9b439f05..9713daa52 100644 --- a/lualib/lua_scanners/kaspersky_av.lua +++ b/lualib/lua_scanners/kaspersky_av.lua @@ -44,11 +44,14 @@ local function kaspersky_config(opts) message = default_message, detection_category = "virus", tmpdir = '/tmp', - prefix = 'rs_ak', } kaspersky_conf = lua_util.override_defaults(kaspersky_conf, opts) + if not kaspersky_conf.prefix then + kaspersky_conf.prefix = 'rs_' .. kaspersky_conf.name .. '_' + end + if not kaspersky_conf.log_prefix then if kaspersky_conf.name:lower() == kaspersky_conf.type:lower() then kaspersky_conf.log_prefix = kaspersky_conf.name |