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.
()
| 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. |
| 1145 | func 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 |