Class MailCoreHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.mail.utils.MailCoreHelper
-
public final class MailCoreHelper extends Object
Helper for Mail Core.- Author:
- Catalin Baican
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_MESSAGE_LIMITstatic StringDELETED_LIFECYCLE_STATEDeprecated.since 10.3, useTrashServiceinsteadstatic longEMAILS_LIMIT_DEFAULTstatic StringIMAP_DEBUGstatic StringINBOXprotected static StringMESSAGE_LIMIT_OPTIONstatic StringPIPE_NAMEprotected static CopyOnWriteArrayList<String>processingMailBoxes
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckMail(DocumentModel currentMailFolder, CoreSession coreSession)Creates MailMessage documents for every unread mail found in the INBOX.protected static voiddoCheckMail(DocumentModel currentMailFolder, CoreSession coreSession)protected static intgetMessageLimit(javax.mail.Folder mailbox)
-
-
-
Field Detail
-
PIPE_NAME
public static final String PIPE_NAME
- See Also:
- Constant Field Values
-
INBOX
public static final String INBOX
- See Also:
- Constant Field Values
-
DELETED_LIFECYCLE_STATE
@Deprecated public static final String DELETED_LIFECYCLE_STATE
Deprecated.since 10.3, useTrashServiceinstead- See Also:
- Constant Field Values
-
EMAILS_LIMIT_DEFAULT
public static final long EMAILS_LIMIT_DEFAULT
- See Also:
- Constant Field Values
-
IMAP_DEBUG
public static final String IMAP_DEBUG
- See Also:
- Constant Field Values
-
processingMailBoxes
protected static final CopyOnWriteArrayList<String> processingMailBoxes
-
MESSAGE_LIMIT_OPTION
protected static final String MESSAGE_LIMIT_OPTION
- See Also:
- Constant Field Values
-
DEFAULT_MESSAGE_LIMIT
protected static final int DEFAULT_MESSAGE_LIMIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkMail
public static void checkMail(DocumentModel currentMailFolder, CoreSession coreSession) throws javax.mail.MessagingException
Creates MailMessage documents for every unread mail found in the INBOX. The parameters needed to connect to the email INBOX are retrieved from the MailFolder document passed as a parameter.- Throws:
javax.mail.MessagingException
-
doCheckMail
protected static void doCheckMail(DocumentModel currentMailFolder, CoreSession coreSession) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
getMessageLimit
protected static int getMessageLimit(javax.mail.Folder mailbox) throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
-