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 int
DEFAULT_MESSAGE_LIMIT
static String
DELETED_LIFECYCLE_STATE
Deprecated.since 10.3, useTrashService
insteadstatic long
EMAILS_LIMIT_DEFAULT
static String
IMAP_DEBUG
static String
INBOX
protected static String
MESSAGE_LIMIT_OPTION
static String
PIPE_NAME
protected static CopyOnWriteArrayList<String>
processingMailBoxes
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkMail(DocumentModel currentMailFolder, CoreSession coreSession)
Creates MailMessage documents for every unread mail found in the INBOX.protected static void
doCheckMail(DocumentModel currentMailFolder, CoreSession coreSession)
protected static int
getMessageLimit(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, useTrashService
instead- 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
-
-