Class ImapUtil

java.lang.Object
org.alfresco.email.dsl.imap.ImapUtil

public class ImapUtil extends Object
  • Constructor Details

  • Method Details

    • getCurrentFolder

      public javax.mail.Folder getCurrentFolder() throws Exception
      Throws:
      Exception
    • getFolder

      public javax.mail.Folder getFolder(org.alfresco.utility.model.ContentModel contentModel) throws Exception
      Returns IMAP folder for the provided ContentModel
      Throws:
      Exception
    • getMessageBySubject

      public javax.mail.Message getMessageBySubject(javax.mail.Message[] messages, String subject) throws Exception
      Returns message if it exists otherwise returns null
      Throws:
      Exception
    • getMessageContent

      protected String getMessageContent(javax.mail.Message message) throws Exception
      Returns multipart message content as text
      Throws:
      Exception
    • getObjectName

      public String getObjectName(String path)
      Returns the object name e.g. getObjectName("/documentLibrary/file.txt") will return file.txt
    • getCurrentSiteName

      public String getCurrentSiteName() throws Exception
      Throws:
      Exception
    • getMessageFlagName

      public String getMessageFlagName(javax.mail.Flags.Flag flag)