]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Save required score in history
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 3 Apr 2016 14:29:09 +0000 (15:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 3 Apr 2016 14:29:31 +0000 (15:29 +0100)
Issue: #581

src/libserver/roll_history.c

index b8029b306ba34c35c075ef08afeb187fe1b84cd1..812df927e03daee1a3f9a49d3571388fecb0797f 100644 (file)
@@ -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,