From: Vsevolod Stakhov Date: Wed, 9 Jan 2013 15:02:50 +0000 (+0400) Subject: Update required score according to default metric's action. X-Git-Tag: 0.5.4~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=366dcda9e75a6fdf658dc807dc2925f36e62ff08;p=thirdparty%2Frspamd.git Update required score according to default metric's action. --- diff --git a/src/dynamic_cfg.c b/src/dynamic_cfg.c index 3979e8ddcb..eacd262a8c 100644 --- a/src/dynamic_cfg.c +++ b/src/dynamic_cfg.c @@ -135,6 +135,10 @@ apply_dynamic_conf (GList *conf_metrics, struct config_file *cfg) if (real_act->action == act->action) { real_act->score = act->value; } + /* Update required score accordingly to metric's action */ + if (act->action == real_metric->action) { + real_metric->required_score = act->value; + } tmp = g_list_next (tmp); } cur_elt = g_list_next (cur_elt);