Package io.jmix.email

Interface EmailCleaner

All Known Implementing Classes:
EmailCleanerImpl

public interface EmailCleaner
Should be used to delete old emails and attachments.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deletes old email messages and attachments.
  • Method Details

    • deleteOldEmails

      Integer deleteOldEmails()
      Deletes old email messages and attachments.

      Uses the settings of emails age (jmix.email.maxAgeOfImportantMessages, jmix.email.maxAgeOfNonImportantMessages) which are configurable by application.properties.

      Returns:
      count of messages and attachments, that has been deleted