SendGrid: report dropped "Bounced Address" webhook events as reason "bounced"

In SendGrid tracking webhook, handle event="dropped", reason="Bounced Address" 
events as type "dropped", reject_reason "bounced" (rather than reject_reason "other").

See https://www.twilio.com/docs/sendgrid/for-developers/tracking-events/event#dropped
This commit is contained in:
Vitaliy
2024-06-20 17:42:25 -04:00
committed by GitHub
parent 0f2eef7300
commit 6e696b8566
3 changed files with 43 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ class SendGridTrackingWebhookView(AnymailBaseWebhookView):
"invalid": RejectReason.INVALID,
"unsubscribed address": RejectReason.UNSUBSCRIBED,
"bounce": RejectReason.BOUNCED,
"bounced address": RejectReason.BOUNCED,
"blocked": RejectReason.BLOCKED,
"expired": RejectReason.TIMED_OUT,
}