From 1b152c5db87f6bc306e51a24b5024d0083f9b1bb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 Jul 2016 15:02:20 +0100 Subject: [Feature] Correctly work when there is no hard reject action --- src/libserver/roll_history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libserver/roll_history.c') diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c index 812df927e..7cc0490c1 100644 --- a/src/libserver/roll_history.c +++ b/src/libserver/roll_history.c @@ -125,7 +125,7 @@ rspamd_roll_history_update (struct roll_history *history, else { row->score = metric_res->score; row->action = rspamd_check_action_metric (task, metric_res); - row->required_score = metric_res->actions_limits[METRIC_ACTION_REJECT]; + row->required_score = rspamd_task_get_required_score (task, metric_res); cbdata.pos = row->symbols; cbdata.remain = sizeof (row->symbols); g_hash_table_foreach (metric_res->symbols, -- cgit v1.2.3