Class MailReader
java.lang.Object
org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Logger.HasLogger
org.jenkinsci.plugins.pollmailboxtrigger.mail.MailReader
Allows us to read mail using the imap protocol.
- Author:
- Nick Grealy
-
Constructor Summary
ConstructorsConstructorDescriptionMailReader(String host, String username, String password) MailReader(String host, String username, String password, String storeName, Logger logger, CustomProperties properties) -
Method Summary
Methods inherited from class org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Logger.HasLogger
getLogger
-
Constructor Details
-
MailReader
public MailReader(String host, String username, String password) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
MailReader
public MailReader(String host, String username, String password, String storeName, Logger logger, CustomProperties properties) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
-
Method Details
-
connect
- Throws:
javax.mail.MessagingException
-
folder
public MailWrapperUtils.FolderWrapper folder(String folderName) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
getFolders
- Throws:
javax.mail.MessagingException
-
close
public void close()
-