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

Function NewMessageID

internal/identity/store.go:1145–1147  ·  view source on GitHub ↗

10 days NewMessageID returns a fresh internal message ID. Callers can use this to generate the ID up-front when they need it before storing — for example, the SMTP relay generates the ID before signing auth headers so the ID is part of the canonical string fed to HMAC.

()

Source from the content-addressed store, hash-verified

1143// example, the SMTP relay generates the ID before signing auth headers
1144// so the ID is part of the canonical string fed to HMAC.
1145func NewMessageID() string {
1146 return "msg_" + generateID()
1147}
1148
1149// CreateInboundMessage stores an inbound message. If id is empty a new
1150// one is generated; otherwise the caller's pre-generated ID is used so

Callers 3

deliverToAgentMethod · 0.92
createInboundMessageFunction · 0.85

Calls 1

generateIDFunction · 0.85

Tested by 1