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 broken SES bounce type check.
Kailash Nadhb433ef68ec47
diff --git a/internal/bounce/webhooks/ses.go b/internal/bounce/webhooks/ses.goindex 02b423ce..a7e8d6d4 100644--- a/internal/bounce/webhooks/ses.go+++ b/internal/bounce/webhooks/ses.go@@ -119,7 +119,7 @@ func (s *SES) ProcessBounce(b []byte) (models.Bounce, error) {return bounce, fmt.Errorf("error unmarshalling SES notification: %v", err)}- if !(m.EventType == "Bounce" || m.NotifType == "Bounce") {+ if (m.EventType != "" && m.EventType != "Bounce") || (m.NotifType != "" && m.NotifType != "Bounce") {return bounce, errors.New("notification type is not bounce")}