Class MailCoreHelper
java.lang.Object
org.nuxeo.ecm.platform.mail.utils.MailCoreHelper
Helper for Mail Core.
- Author:
- Catalin Baican
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
PIPE_NAME
- See Also:
-
INBOX
- See Also:
-
DELETED_LIFECYCLE_STATE
Deprecated.since 10.3, useTrashService
instead- See Also:
-
EMAILS_LIMIT_DEFAULT
public static final long EMAILS_LIMIT_DEFAULT- See Also:
-
IMAP_DEBUG
- See Also:
-
processingMailBoxes
-
MESSAGE_LIMIT_OPTION
- See Also:
-
DEFAULT_MESSAGE_LIMIT
protected static final int DEFAULT_MESSAGE_LIMIT- See Also:
-
-
Method Details
-
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
-
TrashService
instead