Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Handle Postmark spam complaints. (#2679)

Kevin Cox2085abefb4f9
diff --git a/internal/bounce/webhooks/postmark.go b/internal/bounce/webhooks/postmark.go
index 3bed6961..00f3c626 100644
--- a/internal/bounce/webhooks/postmark.go
+++ b/internal/bounce/webhooks/postmark.go
@@ -60,8 +60,8 @@ func (p *Postmark) ProcessBounce(b []byte, c echo.Context) ([]models.Bounce, err
return nil, fmt.Errorf("error unmarshalling postmark notification: %v", err)
}
- // Ignore non-bounce messages.
- if n.RecordType != "Bounce" {
+ // Ignore irrelevant messages.
+ if n.RecordType != "Bounce" && n.RecordType != "SpamComplaint" {
return nil, nil
}