Class EmailCleanerImpl

java.lang.Object
io.jmix.email.impl.EmailCleanerImpl
All Implemented Interfaces:
EmailCleaner

@Component("email_EmailCleaner") public class EmailCleanerImpl extends Object implements EmailCleaner
  • Constructor Details

    • EmailCleanerImpl

      public EmailCleanerImpl()
  • Method Details

    • deleteOldEmails

      @Transactional public Integer deleteOldEmails()
      Description copied from interface: EmailCleaner
      Deletes old email messages and attachments.

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

      Specified by:
      deleteOldEmails in interface EmailCleaner
      Returns:
      count of messages and attachments, that has been deleted