Klasse ImapClient

java.lang.Object
org.xbib.interlibrary.imap.ImapClient

public class ImapClient extends Object
A wrapper class for IMAP functionality.
  • Methodendetails

    • newInstance

      public static ImapClient newInstance(String url) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • newInstance

      public static ImapClient newInstance(String url, String username, String password) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • close

      public void close() throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • exist

      public Boolean exist(String folderName) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • eachFolder

      public void eachFolder(String folderName, String folderPattern, Consumer<javax.mail.Folder> consumer) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • create

      public void create(String folderName) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • delete

      public void delete(String folderName) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • expunge

      public void expunge(String folderName) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • messageCount

      public Integer messageCount(String folderName) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • eachMessage

      public void eachMessage(String folderName, Consumer<javax.mail.Message> consumer) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • eachMessage

      public void eachMessage(String folderName, int start, int end, Consumer<javax.mail.Message> consumer) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • eachSearchedMessage

      public void eachSearchedMessage(String folderName, javax.mail.Flags flags, Consumer<javax.mail.Message> consumer) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • eachSearchedMessage

      public void eachSearchedMessage(String folderName, javax.mail.search.SearchTerm searchTerm, Consumer<javax.mail.Message> consumer) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException