org.nuxeo.ecm.platform.mail.listener.action
Class CheckMailUnicity
java.lang.Object
org.nuxeo.ecm.platform.mail.listener.action.AbstractMailAction
org.nuxeo.ecm.platform.mail.listener.action.CheckMailUnicity
- All Implemented Interfaces:
- MessageAction
public class CheckMailUnicity
- extends AbstractMailAction
This class checks whether a mail is a duplicate of a previously stored mail
document. The mail is considered a duplicate if the sender, sending_date,
title, text and containing folder are the same. This should fit for most
uses.
- Author:
- Christophe Capon, Laurent Doguin
MAIL_SEARCH_QUERY
public static final String MAIL_SEARCH_QUERY
- See Also:
- Constant Field Values
CheckMailUnicity
public CheckMailUnicity()
execute
public boolean execute(ExecutionContext context)
throws Exception
- Description copied from interface:
MessageAction
- Executes one action.
If it returns false, the following actions from the pipe are not executed.
- Specified by:
execute
in interface MessageAction
- Overrides:
execute
in class AbstractMailAction
- Throws:
Exception
- See Also:
ExecutionContext
Copyright © 2011 Nuxeo SAS. All Rights Reserved.