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

Method CheckRcpt

internal/check/stateless_check.go:116–129  ·  view source on GitHub ↗
(ctx context.Context, rcptTo string)

Source from the content-addressed store, hash-verified

114}
115
116func (s *statelessCheckState) CheckRcpt(ctx context.Context, rcptTo string) module.CheckResult {
117 if s.c.rcptCheck == nil {
118 return module.CheckResult{}
119 }
120 defer trace.StartRegion(ctx, s.c.modName+"/CheckRcpt").End()
121
122 originalRes := s.c.rcptCheck(StatelessCheckContext{
123 Context: ctx,
124 Resolver: s.c.resolver,
125 MsgMeta: s.msgMeta,
126 Logger: target.DeliveryLogger(s.c.logger, s.msgMeta),
127 }, rcptTo)
128 return s.c.failAction.Apply(originalRes)
129}
130
131func (s *statelessCheckState) CheckBody(ctx context.Context, header textproto.Header, body buffer.Buffer) module.CheckResult {
132 if s.c.bodyCheck == nil {

Callers

nothing calls this directly

Calls 1

ApplyMethod · 0.45

Tested by

no test coverage detected