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

Method CheckSender

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

Source from the content-addressed store, hash-verified

341}
342
343func (s *state) CheckSender(ctx context.Context, addr string) module.CheckResult {
344 s.mailFrom = addr
345
346 if s.c.stage != StageSender {
347 return module.CheckResult{}
348 }
349
350 defer trace.StartRegion(ctx, "command/CheckSender"+s.c.cmd).End()
351
352 cmdName, cmdArgs := s.expandCommand(addr)
353 return s.run(cmdName, cmdArgs, bytes.NewReader(nil))
354}
355
356func (s *state) CheckRcpt(ctx context.Context, addr string) module.CheckResult {
357 s.rcpts = append(s.rcpts, addr)

Callers

nothing calls this directly

Calls 2

expandCommandMethod · 0.95
runMethod · 0.95

Tested by

no test coverage detected