]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Treat 'ungrouped' group specially
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Feb 2018 10:37:50 +0000 (10:37 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Feb 2018 10:37:50 +0000 (10:37 +0000)
lualib/rspamd_config_transform.lua
src/libserver/cfg_utils.c

index 636372988a8bc7f19d1200fd527abea75cc9ee70..0823012ba49cf064bc54f9cbac34a79bdffcfe6c 100644 (file)
@@ -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
 
index 20f4dd16377db6ad9adcfb62511f3c4f6b70069b..5d0d94096aef06b9abd527b614362e2a1fdb2404 100644 (file)
@@ -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;
        }