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

Method CheckRcpt

internal/check/command/command.go:356–366  ·  view source on GitHub ↗
(ctx context.Context, addr string)

Source from the content-addressed store, hash-verified

354}
355
356func (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
368func (s *state) CheckBody(ctx context.Context, hdr textproto.Header, body buffer.Buffer) module.CheckResult {
369 if s.c.stage != StageBody {

Callers

nothing calls this directly

Calls 2

expandCommandMethod · 0.95
runMethod · 0.95

Tested by

no test coverage detected