Package com.axelor.mail
Class MailReader
- java.lang.Object
-
- com.axelor.mail.MailReader
-
public class MailReader extends Object
TheMailReader
provides features to read mails.
-
-
Constructor Summary
Constructors Constructor Description MailReader(MailAccount account)
Create a new instance ofMailReader
with the given account.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.Store
getStore()
Get aStore
object and connect to the store if not connected.
-
-
-
Constructor Detail
-
MailReader
public MailReader(MailAccount account)
Create a new instance ofMailReader
with the given account.- Parameters:
account
- the account to use- Throws:
IllegalArgumentException
- if mail account can't get aStore
-
-
Method Detail
-
getStore
public javax.mail.Store getStore() throws javax.mail.AuthenticationFailedException, javax.mail.MessagingException
Get aStore
object and connect to the store if not connected.- Returns:
- an instance of
Store
- Throws:
javax.mail.AuthenticationFailedException
- if authentication failsjavax.mail.MessagingException
- if other failure
-
-