MCPcopy Create free account
hub / github.com/foxcpp/maddy / parseModifiersGroup

Function parseModifiersGroup

internal/msgpipeline/config.go:385–393  ·  view source on GitHub ↗
(globals map[string]interface{}, node config.Node)

Source from the content-addressed store, hash-verified

383}
384
385func parseModifiersGroup(globals map[string]interface{}, node config.Node) (modify.Group, error) {
386 // Module object is *modify.Group, not modify.Group.
387 var mg *modify.Group
388 err := modconfig.GroupFromNode("modifiers", node.Args, node, globals, &mg)
389 if err != nil {
390 return modify.Group{}, err
391 }
392 return *mg, nil
393}
394
395func validMatchRule(rule string) bool {
396 return address.ValidDomain(rule) || address.Valid(rule)

Callers 3

parseMsgPipelineRootCfgFunction · 0.85
parseMsgPipelineSrcCfgFunction · 0.85
parseMsgPipelineRcptCfgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected