Interface IIMAPClient

All Superinterfaces:
AutoCloseable

public interface IIMAPClient extends 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 Details

    • getDefaultFolder

      IIMAPFolder getDefaultFolder()
      Returns:
      root folder
    • getFolder

      IIMAPFolder getFolder(String folder)
      return the named folder
      Parameters:
      folder - name
      Returns:
      the named folder
    • moveMessages

      void moveMessages(Collection<IIMAPMessage> messages, IIMAPFolder targetFolder)
      move a list of message to a folder;
      Parameters:
      messages - list of IIMAPMessage
      targetFolder - destination folder