MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / pushEventFor

Function pushEventFor

internal/delivery/consumer.go:43–53  ·  view source on GitHub ↗

pushEventFor maps a recipient status to its webhook event type, or "" for statuses with no push event (queued/sent/deferred/failed — poll instead).

(s Status)

Source from the content-addressed store, hash-verified

41// pushEventFor maps a recipient status to its webhook event type, or "" for
42// statuses with no push event (queued/sent/deferred/failed — poll instead).
43func pushEventFor(s Status) string {
44 switch s {
45 case StatusDelivered:
46 return EventEmailDelivered
47 case StatusBounced:
48 return EventEmailBounced
49 case StatusComplained:
50 return EventEmailComplained
51 }
52 return ""
53}
54
55// Consumer applies a parsed SES Event to the store: per-recipient transitions,
56// delivery events, and auto-suppression. It is idempotent end-to-end (safe to

Callers 1

ProcessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected