java.lang.Object
ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
ch.tocco.nice2.optional.mailintegration.impl.userbase.MailStoreWorker
All Implemented Interfaces:
MailWorker

@Component public class MailStoreWorker extends AbstractMailWorker
Stores the mail in "Email_archive" using the MailArchive service. Looks for any mail in the archive that is refered to by the new mail and sets relations accordingly.
  • Constructor Details

  • Method Details

    • perform

      public void perform(IncomeMail mail, MailWorkerContext mailContext)
      Description copied from interface: MailWorker
      Called for each incoming mail. The context can be used for communication between workers. It is constructed at MailWorker.init(MailWorkerConfig) time and passed to each worker.

      This method is invoked during an open connection to the mailbox.

      This method may throw a runtime exception indicating a non-recoverable error. In this case remaining workers are not invoked and the mail is not deleted from the mailbox.

    • setRelationsToSkip

      @Autowired public void setRelationsToSkip(List<String> skip)