| 114 | } |
| 115 | |
| 116 | func (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 | |
| 131 | func (s *statelessCheckState) CheckBody(ctx context.Context, header textproto.Header, body buffer.Buffer) module.CheckResult { |
| 132 | if s.c.bodyCheck == nil { |