aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-27 15:02:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-27 15:02:20 +0100
commit1b152c5db87f6bc306e51a24b5024d0083f9b1bb (patch)
treedf603d47ab1df7d87c1de112d91da5cc87c2f6bd /src/libstat/stat_process.c
parent874af6856f4362ab6077b37a5defa8f3aa13d395 (diff)
downloadrspamd-1b152c5db87f6bc306e51a24b5024d0083f9b1bb.tar.gz
rspamd-1b152c5db87f6bc306e51a24b5024d0083f9b1bb.zip
[Feature] Correctly work when there is no hard reject action
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 5c39cd8d8..00e7ded4c 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -850,7 +850,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task)
mres->action = rspamd_check_action_metric (task, mres);
}
- if (mres->action == METRIC_ACTION_REJECT) {
+ if (mres->score > rspamd_task_get_required_score (task, mres)) {
task->flags |= RSPAMD_TASK_FLAG_LEARN_SPAM;
ret = TRUE;