From e7fc0b15eb8de8f6900d328fead003940f3c507e Mon Sep 17 00:00:00 2001 From: Bay Date: Thu, 28 Nov 2024 16:39:17 +0900 Subject: [PATCH] Add Cc to common headers --- events/ses.go | 1 + events/testdata/ses-sns-event.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/events/ses.go b/events/ses.go index ff899856..2ca0a02c 100644 --- a/events/ses.go +++ b/events/ses.go @@ -49,6 +49,7 @@ type SimpleEmailHeader struct { type SimpleEmailCommonHeaders struct { From []string `json:"from"` To []string `json:"to"` + Cc []string `json:"cc,omitempty"` ReturnPath string `json:"returnPath"` MessageID string `json:"messageId"` Date string `json:"date"` diff --git a/events/testdata/ses-sns-event.json b/events/testdata/ses-sns-event.json index 771d5006..c030514a 100644 --- a/events/testdata/ses-sns-event.json +++ b/events/testdata/ses-sns-event.json @@ -101,6 +101,10 @@ "to": [ "recipient@example.com" ], + "cc": [ + "cc@example.com", + "cc2@example.com" + ], "messageId": "<61967230-7A45-4A9D-BEC9-87CBCF2211C9@example.com>", "subject": "Example subject" }