Skip to content

Remove old E-Mails from unprocessed folder for imap bounce processing

Stefan C requested to merge configuration_of_unprocessed_folder into master

What does this MR do?

Currently, unprocessed bounce mails (i.E. written Mails to no-reply@foodsharing.network) are stored in the Mailbox forever. They should be cleaned up.

  • Adds a variable to configure IMAP unprocessed folder
  • Adds a function to cleanup old mails
  • Delete old Mails from bounce processing
  • Delete old failed incomming mails

Unrelated Change

Fix Typo: Maintaince -> Maintenance

How confident are you it won't break things if deployed?

If the folder is set correctly, no wrong E-Mails should be deleted. If they are not deleted, nothing changes/breaks the current state

How to test

Don't know, I could run the code in production.

Checklist

Edited by Stefan C

Merge request reports