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

Method RewriteSender

framework/module/modifier.go:63–63  ·  view source on GitHub ↗

RewriteSender allows modifier to replace MAIL FROM value. If no changes are required, this method returns its argument, otherwise it returns a new value. Note that per-source/per-destination modifiers are executed after routing decision is made so changed value will have no effect on it. Also note

(ctx context.Context, mailFrom string)

Source from the content-addressed store, hash-verified

61 // Also note that MsgMeta.OriginalFrom will still contain the original value
62 // for purposes of tracing. It should not be modified by this method.
63 RewriteSender(ctx context.Context, mailFrom string) (string, error)
64
65 // RewriteRcpt replaces RCPT TO value.
66 // If no changed are required, this method returns its argument as slice,

Callers 6

RewriteSenderMethod · 0.65
testReplaceAddrFunction · 0.65
signTestMsgFunction · 0.65
startMethod · 0.65
getRcptModifiersMethod · 0.65

Implementers 4

modifierStateinternal/testutils/modifier.go
groupStateinternal/modify/group.go
replaceAddrinternal/modify/replace_addr.go
stateinternal/modify/dkim/dkim.go

Calls

no outgoing calls

Tested by 2

testReplaceAddrFunction · 0.52
signTestMsgFunction · 0.52