MCPcopy Index your code
hub / github.com/foxcpp/maddy / CheckSender

Method CheckSender

internal/check/stateless_check.go:101–114  ·  view source on GitHub ↗
(ctx context.Context, mailFrom string)

Source from the content-addressed store, hash-verified

99}
100
101func (s *statelessCheckState) CheckSender(ctx context.Context, mailFrom string) module.CheckResult {
102 if s.c.senderCheck == nil {
103 return module.CheckResult{}
104 }
105 defer trace.StartRegion(ctx, s.c.modName+"/CheckSender").End()
106
107 originalRes := s.c.senderCheck(StatelessCheckContext{
108 Context: ctx,
109 Resolver: s.c.resolver,
110 MsgMeta: s.msgMeta,
111 Logger: target.DeliveryLogger(s.c.logger, s.msgMeta),
112 }, mailFrom)
113 return s.c.failAction.Apply(originalRes)
114}
115
116func (s *statelessCheckState) CheckRcpt(ctx context.Context, rcptTo string) module.CheckResult {
117 if s.c.rcptCheck == nil {

Callers

nothing calls this directly

Calls 1

ApplyMethod · 0.45

Tested by

no test coverage detected