mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
953f3856a8
When Mailgun fails to deliver an email to an address because the address has already bounced before, it gives us a permanent fail event with a 605 error code rather than a 5xx one. Because we want to "backfill" our suppressions data with previously bounced email addresses, we want to handle this specific error code. We may update this logic in the future based on new information from Mailgun with respect to their 6xx error codes and the meanings/underlying cause of theme. This also moves the tests which check for whether or not emails are suppressed into their own fail so that we do not pollute the event storage tests, and adds more tests cases. We also fix a leaky sinon stub which we were not resetting in the email event storage tests |
||
---|---|---|
.. | ||
batch-sending.test.js | ||
email-event-storage.test.js |