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

Method CheckBody

framework/module/check.go:83–83  ·  view source on GitHub ↗

CheckBody is executed once after the message body is received and buffered in memory or on disk. Check code should use passed mutex when working with the message header. Body can be read without locking it since it is read-only.

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

Source from the content-addressed store, hash-verified

81 // Check code should use passed mutex when working with the message header.
82 // Body can be read without locking it since it is read-only.
83 CheckBody(ctx context.Context, header textproto.Header, body buffer.Buffer) CheckResult
84
85 // Close is called after the message processing ends, even if any of the
86 // Check* functions return an error.

Callers 8

checkBodyMethod · 0.65
TestDkimVerify_NoSigFunction · 0.65
TestDkimVerify_ValidSigFunction · 0.65
TestDkimVerify_FailOpenFunction · 0.65

Implementers 10

checkStateinternal/testutils/check.go
stateinternal/check/skeleton.go
statelessCheckStateinternal/check/stateless_check.go
stateinternal/check/spf/spf.go
stateinternal/check/dnsbl/dnsbl.go
stateinternal/check/rspamd/rspamd.go
stateinternal/check/command/command.go
dkimCheckStateinternal/check/dkim/dkim.go
stateinternal/check/milter/milter.go
stateinternal/check/authorize_sender/author

Calls

no outgoing calls

Tested by 7

TestDkimVerify_NoSigFunction · 0.52
TestDkimVerify_ValidSigFunction · 0.52
TestDkimVerify_FailOpenFunction · 0.52