Mail Repository allows the long term storage of emails.
They are currently used for several uses:
- Keep mail triggering processing errors (kinda dead-letter)
- Keep user non-displayed SPAM
- Storage medium for Data Leak Prevention
Currently, as highlishted by Garry Hurley on the user mailing list, JPA users are forced to rely on a file based implementation, which is clearly not optimal.
We should implement a JPAMailRepository in `server/data/jpa`. It should be tested against the `MailRepositoryContract`.
If any help is needed, please don't hesitate to reach us on Gitter.