anymail / django-anymail

Django email backends and webhooks for Amazon SES, Brevo (Sendinblue), MailerSend, Mailgun, Mailjet, Postmark, Postal, Resend, SendGrid, SparkPost, Unisender Go and more
https://anymail.dev
BSD 3-Clause "New" or "Revised" License
1.7k stars 130 forks source link

Workaround for postmark inbound test email can not be parsed #309

Closed Ecno92 closed 1 year ago

Ecno92 commented 1 year ago

Recently we discussed the issue that Postmark's inbound test webhooks are not in the same format as real inbound webhooks.

I have created a workaround for this issue. Now anymail will handle the events without crashing. Also it will raise a warning, so that the user might consider testing with a real event before going to production.

I did my best to make this change according to the quality standards of this project. If something is missing or changed let me know.

Closes #304

medmunds commented 1 year ago

This looks great. Thanks!

(The test failures on Python 3.6 aren't related to this PR. They're also failing in the weekly test run, so something outside Anymail has changed.)