diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-09 19:02:50 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-09 19:02:50 +0400 |
commit | 366dcda9e75a6fdf658dc807dc2925f36e62ff08 (patch) | |
tree | 28deb96ae15b97f273c6a7ffcabba68f8bfd0fd2 /src/dynamic_cfg.c | |
parent | b94138fc387a4ff991738db86a7064221ef25959 (diff) | |
download | rspamd-366dcda9e75a6fdf658dc807dc2925f36e62ff08.tar.gz rspamd-366dcda9e75a6fdf658dc807dc2925f36e62ff08.zip |
Update required score according to default metric's action.
Diffstat (limited to 'src/dynamic_cfg.c')
-rw-r--r-- | src/dynamic_cfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dynamic_cfg.c b/src/dynamic_cfg.c index 3979e8ddc..eacd262a8 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); |