aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
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/libmime
parent874af6856f4362ab6077b37a5defa8f3aa13d395 (diff)
downloadrspamd-1b152c5db87f6bc306e51a24b5024d0083f9b1bb.tar.gz
rspamd-1b152c5db87f6bc306e51a24b5024d0083f9b1bb.zip
[Feature] Correctly work when there is no hard reject action
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 89ccff68b..17680d3cd 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1012,7 +1012,7 @@ process_text_part (struct rspamd_task *task,
mres = rspamd_create_metric_result (task, DEFAULT_METRIC);
if (mres != NULL) {
- mres->score = mres->metric->actions[METRIC_ACTION_REJECT].score;
+ mres->score = rspamd_task_get_required_score (task, mres);
mres->action = METRIC_ACTION_REJECT;
}