]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Update required score according to default metric's action.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 9 Jan 2013 15:02:50 +0000 (19:02 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 9 Jan 2013 15:02:50 +0000 (19:02 +0400)
src/dynamic_cfg.c

index 3979e8ddcb45520ffc1ad51db3897d51c847630d..eacd262a8c4e4e5997f8f3456117f2a0be9df9a9 100644 (file)
@@ -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);