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

Struct replaceAddr

internal/modify/replace_addr.go:41–48  ·  view source on GitHub ↗

replaceAddr is a simple module that replaces matching sender (or recipient) address in messages using module.Table implementation. If created with modName = "modify.replace_sender", it will change sender address. If created with modName = "modify.replace_rcpt", it will change recipient addresses.

Source from the content-addressed store, hash-verified

39// If created with modName = "modify.replace_sender", it will change sender address.
40// If created with modName = "modify.replace_rcpt", it will change recipient addresses.
41type replaceAddr struct {
42 modName string
43 instName string
44
45 replaceSender bool
46 replaceRcpt bool
47 table module.MultiTable
48}
49
50func NewReplaceAddr(c *container.C, modName, instName string) (module.Module, error) {
51 r := replaceAddr{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected