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
-
-
Field Summary
Fields Modifier and Type Field Description static String
MAIL_SEARCH_QUERY
-
Constructor Summary
Constructors Constructor Description CheckMailUnicity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(ExecutionContext context)
Executes one action.-
Methods inherited from class org.nuxeo.ecm.platform.mail.listener.action.AbstractMailAction
getCoreSession, reset
-
-
-
-
Field Detail
-
MAIL_SEARCH_QUERY
public static final String MAIL_SEARCH_QUERY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CheckMailUnicity
public CheckMailUnicity()
-
-
Method Detail
-
execute
public boolean execute(ExecutionContext context)
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 interfaceMessageAction
- Overrides:
execute
in classAbstractMailAction
- See Also:
ExecutionContext
-
-