return
end
end
+ -- Now check what Rspamd knows about this symbol
+ local sym = rspamd_config:get_metric_symbol(k)
+
+ if not k or not k.group then
+ -- Otherwise we just use group 'ungrouped'
+ if not cfg.group.ungrouped then
+ cfg.group.ungrouped = {
+ symbols = {}
+ }
+ end
- -- Otherwise we just use group 'ungrouped'
- if not cfg.group.ungrouped then
- cfg.group.ungrouped = {
- symbols = {}
- }
+ cfg.group.ungrouped.symbols[k] = v
+ logger.infox("adding symbol %s to the group 'ungrouped'", k)
end
-
- cfg.group.ungrouped.symbols[k] = v
- logger.infox("adding symbol %s to the group 'ungrouped'", k)
end
local function test_groups(groups)