Class ImapOperations

java.lang.Object
io.jmix.imap.impl.ImapOperations

@Component("imap_ImapOperations") public class ImapOperations extends Object
  • Field Details

  • Constructor Details

    • ImapOperations

      public ImapOperations()
  • Method Details

    • fetchFolders

      public List<ImapFolderDto> fetchFolders(com.sun.mail.imap.IMAPStore store) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • supportsCustomFlag

      public boolean supportsCustomFlag(com.sun.mail.imap.IMAPStore store) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • map

      protected ImapFolderDto map(com.sun.mail.imap.IMAPFolder folder) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • search

      public List<com.sun.mail.imap.IMAPMessage> search(com.sun.mail.imap.IMAPFolder folder, javax.mail.search.SearchTerm searchTerm, ImapMailBox mailBox) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • search

      public List<com.sun.mail.imap.IMAPMessage> search(com.sun.mail.imap.IMAPFolder folder, Integer lastMessageNumber, ImapMailBox mailBox) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • newer

      protected javax.mail.search.SearchTerm newer(int lastMessageNumber)
    • searchMessageIds

      public List<com.sun.mail.imap.IMAPMessage> searchMessageIds(com.sun.mail.imap.IMAPFolder folder, javax.mail.search.SearchTerm searchTerm) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • map

      public ImapMessage map(ImapMessage jmixMessage, com.sun.mail.imap.IMAPMessage msg, ImapFolder jmixFolder) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • getRefId

      protected String getRefId(com.sun.mail.imap.IMAPMessage message) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • getThreadId

      protected Long getThreadId(com.sun.mail.imap.IMAPMessage message, ImapMailBox mailBox) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • getSubject

      protected String getSubject(com.sun.mail.imap.IMAPMessage message) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • fetch

      protected List<com.sun.mail.imap.IMAPMessage> fetch(com.sun.mail.imap.IMAPFolder folder, ImapMailBox mailBox, javax.mail.Message[] messages) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • fetch

      protected List<com.sun.mail.imap.IMAPMessage> fetch(com.sun.mail.imap.IMAPFolder folder, javax.mail.FetchProfile fetchProfile, javax.mail.Message[] messages) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • headerProfile

      protected javax.mail.FetchProfile headerProfile(ImapMailBox mailBox)
    • decode

      protected String decode(String val)