FIX: Rejected emails should not be cleaned up before their logs (#17648)

* FIX: Rejected emails should not be cleaned up before their logs

If we delete the rejected emails before we delete their associated logs
we will receive 404 errors trying to inspect an email message for that
log.

* don't add a blank line

* test for max value as well

* pr cleanup and add migration

* Fix failing test
This commit is contained in:
Blake Erickson
2022-07-27 07:28:44 +01:00
committed by GitHub
parent 3bd5f2d411
commit 8b08b9a763
5 changed files with 60 additions and 1 deletions

View File

@@ -1266,7 +1266,7 @@ email:
raw_rejected_email_max_length: 4000
delete_rejected_email_after_days:
default: 90
max: 36500
validator: "DeleteRejectedEmailAfterDaysValidator"
enable_secondary_emails:
client: true
default: true