aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index fcfbb716b..596fff74a 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -426,6 +426,10 @@ rspamd_rcl_metric_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
return FALSE;
}
+ if (metric->unknown_weight > 0) {
+ metric->accept_unknown_symbols = TRUE;
+ }
+
/* Handle actions */
val = ucl_object_find_key (obj, "actions");
if (val != NULL) {