aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-29 11:31:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-29 11:31:59 +0100
commitfb6e9f73f4b26fff517784e820d4896020f49c40 (patch)
tree71b906322fec77f496c2f370086e5a2c4b5aceb7 /src/libstat/stat_process.c
parent365d60218dac672472b0405a088e06394a1a371c (diff)
downloadrspamd-fb6e9f73f4b26fff517784e820d4896020f49c40.tar.gz
rspamd-fb6e9f73f4b26fff517784e820d4896020f49c40.zip
[Feature] Simplify actions application by the settings
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 2a40ca26c..e6d34e406 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -733,10 +733,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task)
mres = g_hash_table_lookup (task->results, DEFAULT_METRIC);
if (mres) {
- mres->action = rspamd_check_action_metric (task,
- mres->score,
- &mres->actions_limits[METRIC_ACTION_REJECT],
- mres->metric);
+ mres->action = rspamd_check_action_metric (task, mres);
if (mres->action == METRIC_ACTION_REJECT) {
task->flags |= RSPAMD_TASK_FLAG_LEARN_SPAM;