if score > 0 then
local result = score
-
+
-- If spam_score_threshold is defined, override all other thresholds.
local spam_threshold = 0
if rule.spam_score_threshold then
assert(ok, parse_err)
local roc_thresholds = parser:get_object()
set.ann.roc_thresholds = roc_thresholds
- rspamd_logger.infox(rspamd_config,
+ rspamd_logger.infox(rspamd_config,
'loaded ROC thresholds for %s:%s; version=%s',
rule.prefix, set.name, profile.version)
rspamd_logger.debugx("ROC thresholds: %s", roc_thresholds)