Procházet zdrojové kódy

[Minor] Add some more scores

tags/2.6
Vsevolod Stakhov před 4 roky
rodič
revize
af9b355e0a
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4
    2
      src/plugins/lua/whitelist.lua

+ 4
- 2
src/plugins/lua/whitelist.lua Zobrazit soubor

@@ -397,14 +397,16 @@ local configure_whitelist_module = function()
local id = rspamd_config:register_symbol({
name = symbol,
flags = flags,
callback = gen_whitelist_cb(symbol, rule)
callback = gen_whitelist_cb(symbol, rule),
score = rule.score or 0,
})

if rule.inverse_symbol then
rspamd_config:register_symbol({
name = rule.inverse_symbol,
type = 'virtual',
parent = id
parent = id,
score = rule.score and -(rule.score) or 0,
})
end


Načítá se…
Zrušit
Uložit