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 Details

  • 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