summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-03 15:29:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-03 15:29:31 +0100
commitb28e3b7c783636096e6b6a215c998451293a6e46 (patch)
treea9507c7cefde885981d4c34d1838b5a30efc458c /src
parentb5f2c308cda827342ba231c8cf3f6eaf089495fb (diff)
downloadrspamd-b28e3b7c783636096e6b6a215c998451293a6e46.tar.gz
rspamd-b28e3b7c783636096e6b6a215c998451293a6e46.zip
[Fix] Save required score in history
Issue: #581
Diffstat (limited to 'src')
-rw-r--r--src/libserver/roll_history.c1
1 files changed, 1 insertions, 0 deletions
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,