(ctx context.Context, addr string)
| 354 | } |
| 355 | |
| 356 | func (s *state) CheckRcpt(ctx context.Context, addr string) module.CheckResult { |
| 357 | s.rcpts = append(s.rcpts, addr) |
| 358 | |
| 359 | if s.c.stage != StageRcpt { |
| 360 | return module.CheckResult{} |
| 361 | } |
| 362 | defer trace.StartRegion(ctx, "command/CheckRcpt"+s.c.cmd).End() |
| 363 | |
| 364 | cmdName, cmdArgs := s.expandCommand(addr) |
| 365 | return s.run(cmdName, cmdArgs, bytes.NewReader(nil)) |
| 366 | } |
| 367 | |
| 368 | func (s *state) CheckBody(ctx context.Context, hdr textproto.Header, body buffer.Buffer) module.CheckResult { |
| 369 | if s.c.stage != StageBody { |
nothing calls this directly
no test coverage detected