diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-15 10:37:50 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-15 10:37:50 +0000 |
commit | 5ee9d4f25d79dfc1197935d301ed4951b3c8a53e (patch) | |
tree | 2743481e0bac4ab877a3605711e2d9729c0d6ab1 | |
parent | 577a34501b40fcc5982c5ddfc326ddf1c66b13de (diff) | |
download | rspamd-5ee9d4f25d79dfc1197935d301ed4951b3c8a53e.tar.gz rspamd-5ee9d4f25d79dfc1197935d301ed4951b3c8a53e.zip |
[Minor] Treat 'ungrouped' group specially
-rw-r--r-- | lualib/rspamd_config_transform.lua | 2 | ||||
-rw-r--r-- | src/libserver/cfg_utils.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lualib/rspamd_config_transform.lua b/lualib/rspamd_config_transform.lua index 636372988..0823012ba 100644 --- a/lualib/rspamd_config_transform.lua +++ b/lualib/rspamd_config_transform.lua @@ -164,7 +164,7 @@ local function symbol_transform(cfg, k, v) end cfg.group.ungrouped.symbols[k] = v - logger.infox("adding symbol %s to the group 'ungrouped'", k) + logger.debugx("adding symbol %s to the group 'ungrouped'", k) end end diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 20f4dd163..5d0d94096 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -1449,6 +1449,9 @@ rspamd_config_new_symbol (struct rspamd_config *cfg, const gchar *symbol, /* Search for symbol group */ if (group == NULL) { group = "ungrouped"; + } + + if (strcmp (group, "ungrouped") == 0) { sym_def->flags |= RSPAMD_SYMBOL_FLAG_UNGROUPPED; } |