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.
| 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. |
| 41 | type replaceAddr struct { |
| 42 | modName string |
| 43 | instName string |
| 44 | |
| 45 | replaceSender bool |
| 46 | replaceRcpt bool |
| 47 | table module.MultiTable |
| 48 | } |
| 49 | |
| 50 | func NewReplaceAddr(c *container.C, modName, instName string) (module.Module, error) { |
| 51 | r := replaceAddr{ |
nothing calls this directly
no outgoing calls
no test coverage detected