diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-27 15:02:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-27 15:02:20 +0100 |
commit | 1b152c5db87f6bc306e51a24b5024d0083f9b1bb (patch) | |
tree | df603d47ab1df7d87c1de112d91da5cc87c2f6bd /src/libstat/stat_process.c | |
parent | 874af6856f4362ab6077b37a5defa8f3aa13d395 (diff) | |
download | rspamd-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.c | 2 |
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; |