public class JavaReadMailer extends JavaMailer2
JavaMailer2.LoggingByteArrayOutputStream, JavaMailer2.LoggingTransportListener| Constructor and Description |
|---|
JavaReadMailer(ReadmailConfig config,
Boolean closeOnDelete)
Constructor for JavaReadMailer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Finalizer to be sure and close with the appropriate mode
any open folders
|
List<javax.mail.Message> |
getMessages()
getMessages
|
static List<String> |
getText(javax.mail.Message msg)
Attempts to reteive the string portion of a message...
|
Boolean |
isDeleteOnClose()
isDeleteOnClose
|
List<javax.mail.Message> |
retrieveMessages()
retrieveMessages
|
List<javax.mail.Message> |
retrieveMessages(javax.mail.search.SearchTerm term)
retrieveMessages
|
void |
setDeleteOnClose(Boolean deleteOnClose)
setDeleteOnClose
|
static List<String> |
string2Lines(String text)
string2Lines
|
createAuthenticator, createFileAttachment, getMailProps, getSession, setDebug, setSessionpublic JavaReadMailer(ReadmailConfig config, Boolean closeOnDelete) throws JavaMailerException
Constructor for JavaReadMailer.
config - a ReadmailConfig object.closeOnDelete - a Boolean object.JavaMailerException - if any.protected void finalize()
throws Throwable
public List<javax.mail.Message> retrieveMessages() throws JavaMailerException
retrieveMessages
List object.JavaMailerException - if any.public List<javax.mail.Message> retrieveMessages(javax.mail.search.SearchTerm term) throws JavaMailerException
retrieveMessages
term - a SearchTerm object.List object.JavaMailerException - if any.public static List<String> getText(javax.mail.Message msg) throws javax.mail.MessagingException, IOException
msg - a Message object.javax.mail.MessagingException - if any.IOException - if any.public void setDeleteOnClose(Boolean deleteOnClose)
setDeleteOnClose
deleteOnClose - a Boolean object.Copyright © 2020. All rights reserved.