Interface IIMAPClient
- All Superinterfaces:
AutoCloseable
IMAP client interface
Can :
- provide default and named folder
- move a set of message
When the client is close, expunge messages marked as delete
-
Method Summary
Modifier and TypeMethodDescriptionreturn the named foldervoid
moveMessages
(Collection<IIMAPMessage> messages, IIMAPFolder targetFolder) move a list of message to a folder;Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getDefaultFolder
IIMAPFolder getDefaultFolder()- Returns:
- root folder
-
getFolder
return the named folder- Parameters:
folder
- name- Returns:
- the named folder
-
moveMessages
move a list of message to a folder;- Parameters:
messages
- list of IIMAPMessagetargetFolder
- destination folder
-