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 jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • supportsCustomFlag

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

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

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

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

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

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

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

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

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

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

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

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

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

      protected String decode(String val)