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

Method RewriteBody

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

RewriteBody modifies passed Header argument and may optionally inspect the passed body buffer to make a decision on new header field values. There is no way to modify the body and RewriteBody should avoid removing existing header fields and changing their values.

(ctx context.Context, h *textproto.Header, body buffer.Buffer)

Source from the content-addressed store, hash-verified

76 // There is no way to modify the body and RewriteBody should avoid
77 // removing existing header fields and changing their values.
78 RewriteBody(ctx context.Context, h *textproto.Header, body buffer.Buffer) error
79
80 // Close is called after the message processing ends, even if any of the
81 // Rewrite* functions return an error.

Callers 4

RewriteBodyMethod · 0.65
signTestMsgFunction · 0.65
BodyMethod · 0.65
BodyNonAtomicMethod · 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

signTestMsgFunction · 0.52