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, javax.mail.Message[] messages) protected List<com.sun.mail.imap.IMAPMessage>
fetch
(com.sun.mail.imap.IMAPFolder folder, javax.mail.FetchProfile fetchProfile, javax.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 javax.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 javax.mail.search.SearchTerm
newer
(int lastMessageNumber) List<com.sun.mail.imap.IMAPMessage>
search
(com.sun.mail.imap.IMAPFolder folder, Integer lastMessageNumber, ImapMailBox mailBox) List<com.sun.mail.imap.IMAPMessage>
search
(com.sun.mail.imap.IMAPFolder folder, javax.mail.search.SearchTerm searchTerm, ImapMailBox mailBox) List<com.sun.mail.imap.IMAPMessage>
searchMessageIds
(com.sun.mail.imap.IMAPFolder folder, javax.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 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
-
decode
-