aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-07-30 17:14:07 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-07-30 17:14:07 +0100
commitcddc50cd4e66a874bdfd07c9d27c234e2cd779ad (patch)
tree96ff4f0dba76d48f84f7f28f83b11bf15f7d2564 /src/libserver/cfg_utils.cxx
parent0b547ff8e801979b2f1ea42b1b686476f10341cf (diff)
downloadrspamd-cddc50cd4e66a874bdfd07c9d27c234e2cd779ad.tar.gz
rspamd-cddc50cd4e66a874bdfd07c9d27c234e2cd779ad.zip
[Feature] Allow to set negative group score limit via `min_score`
Diffstat (limited to 'src/libserver/cfg_utils.cxx')
-rw-r--r--src/libserver/cfg_utils.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.cxx b/src/libserver/cfg_utils.cxx
index 1344bc4f9..d8696e72d 100644
--- a/src/libserver/cfg_utils.cxx
+++ b/src/libserver/cfg_utils.cxx
@@ -1052,6 +1052,8 @@ rspamd_config_new_group(struct rspamd_config *cfg, const char *name)
rspamd_mempool_add_destructor(cfg->cfg_pool,
(rspamd_mempool_destruct_t) g_hash_table_unref, gr->symbols);
gr->name = rspamd_mempool_strdup(cfg->cfg_pool, name);
+ gr->max_score = NAN;
+ gr->min_score = NAN;
if (strcmp(gr->name, "ungrouped") == 0) {
gr->flags |= RSPAMD_SYMBOL_GROUP_UNGROUPED;