Class MailProcessorHandler

java.lang.Object
ch.tocco.nice2.messaging.mail.api.AbstractMailboxReaderHandler<ReaderResult>
ch.tocco.nice2.optional.mailintegration.impl.handler.MailProcessorHandler
All Implemented Interfaces:
MailboxReaderHandler<ReaderResult>

public class MailProcessorHandler extends AbstractMailboxReaderHandler<ReaderResult>
Gets the IncomeMail object from the context and feeds in into the MailProcessor. If this was successful, the message is marked for deletion so it is removed from the inbox after the reader completes. The message is only deleted, if MessageDeleteHandler is configured as the last MailboxReaderHandler.