Package io.jmix.imap.impl
Class ImapOperations
java.lang.Object
io.jmix.imap.impl.ImapOperations
-
Field Summary
Modifier and TypeFieldDescriptionprotected ImapHelper
protected static final String
static final String
protected Metadata
protected static final String
protected static final String
protected TimeSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected List<com.sun.mail.imap.IMAPMessage>
fetch
(com.sun.mail.imap.IMAPFolder folder, ImapMailBox mailBox, jakarta.mail.Message[] messages) protected List<com.sun.mail.imap.IMAPMessage>
fetch
(com.sun.mail.imap.IMAPFolder folder, jakarta.mail.FetchProfile fetchProfile, jakarta.mail.Message[] messages) fetchFolders
(com.sun.mail.imap.IMAPStore store) protected String
getRefId
(com.sun.mail.imap.IMAPMessage message) protected String
getSubject
(com.sun.mail.imap.IMAPMessage message) protected Long
getThreadId
(com.sun.mail.imap.IMAPMessage message, ImapMailBox mailBox) protected jakarta.mail.FetchProfile
headerProfile
(ImapMailBox mailBox) protected ImapFolderDto
map
(com.sun.mail.imap.IMAPFolder folder) map
(ImapMessage jmixMessage, com.sun.mail.imap.IMAPMessage msg, ImapFolder jmixFolder) protected jakarta.mail.search.SearchTerm
newer
(int lastMessageNumber) List<com.sun.mail.imap.IMAPMessage>
search
(com.sun.mail.imap.IMAPFolder folder, jakarta.mail.search.SearchTerm searchTerm, ImapMailBox mailBox) List<com.sun.mail.imap.IMAPMessage>
search
(com.sun.mail.imap.IMAPFolder folder, Integer lastMessageNumber, ImapMailBox mailBox) List<com.sun.mail.imap.IMAPMessage>
searchMessageIds
(com.sun.mail.imap.IMAPFolder folder, jakarta.mail.search.SearchTerm searchTerm) boolean
supportsCustomFlag
(com.sun.mail.imap.IMAPStore store)
-
Field Details
-
REFERENCES_HEADER
- See Also:
-
IN_REPLY_TO_HEADER
- See Also:
-
SUBJECT_HEADER
- See Also:
-
MESSAGE_ID_HEADER
- See Also:
-
imapHelper
-
metadata
-
timeSource
-
-
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
-
decode
-