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

Method RewriteRcpt

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

RewriteRcpt replaces RCPT TO value. If no changed are required, this method returns its argument as slice, otherwise it returns a slice with 1 or more new values. MsgPipeline will take of populating MsgMeta.OriginalRcpts. RewriteRcpt doesn't do it.

(ctx context.Context, rcptTo string)

Source from the content-addressed store, hash-verified

69 // MsgPipeline will take of populating MsgMeta.OriginalRcpts. RewriteRcpt
70 // doesn't do it.
71 RewriteRcpt(ctx context.Context, rcptTo string) ([]string, error)
72
73 // RewriteBody modifies passed Header argument and may optionally
74 // inspect the passed body buffer to make a decision on new header field values.

Callers 3

RewriteRcptMethod · 0.65
testReplaceAddrFunction · 0.65
AddRcptMethod · 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 1

testReplaceAddrFunction · 0.52