From b28e3b7c783636096e6b6a215c998451293a6e46 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 3 Apr 2016 15:29:09 +0100 Subject: [PATCH] [Fix] Save required score in history Issue: #581 --- src/libserver/roll_history.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c index b8029b306..812df927e 100644 --- a/src/libserver/roll_history.c +++ b/src/libserver/roll_history.c @@ -125,6 +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]; cbdata.pos = row->symbols; cbdata.remain = sizeof (row->symbols); g_hash_table_foreach (metric_res->symbols, -- 2.39.5