Ghost/ghost/core/test/integration/services/email-service
Fabien "egg" O'Carroll 953f3856a8 Handled EmailBounceEvent with 605 error code
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
2023-01-05 17:11:37 +07:00
..
batch-sending.test.js Improved email verification required checks (#16060) 2023-01-04 11:22:12 +01:00
email-event-storage.test.js Handled EmailBounceEvent with 605 error code 2023-01-05 17:11:37 +07:00