High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
fix(bounce): accept SES configuration-set complaint notifications (#3324)
Santhi Prakash05481eb94496
diff --git a/internal/bounce/webhooks/ses.go b/internal/bounce/webhooks/ses.goindex e510f034..ce12de6d 100644--- a/internal/bounce/webhooks/ses.go+++ b/internal/bounce/webhooks/ses.go@@ -124,7 +124,7 @@ func (s *SES) ProcessBounce(b []byte) (models.Bounce, error) {return bounce, fmt.Errorf("error unmarshalling SES notification: %v", err)}- if (m.EventType != "" && m.EventType != "Bounce") ||+ if (m.EventType != "" && m.EventType != "Bounce" && m.EventType != "Complaint") ||(m.NotifType != "" && (m.NotifType != "Bounce" && m.NotifType != "Complaint")) {return bounce, errors.New("notification type is not bounce")}@@ -143,7 +143,7 @@ func (s *SES) ProcessBounce(b []byte) (models.Bounce, error) {typ = models.BounceTypeHard}}- if m.NotifType == "Complaint" {+ if m.NotifType == "Complaint" || m.EventType == "Complaint" {typ = models.BounceTypeComplaint}