Class MailReader


  • public class MailReader
    extends Object
    The MailReader provides features to read mails.
    • Constructor Detail

      • MailReader

        public MailReader​(MailAccount account)
        Create a new instance of MailReader with the given account.
        Parameters:
        account - the account to use
        Throws:
        IllegalArgumentException - if mail account can't get a Store
    • Method Detail

      • getStore

        public javax.mail.Store getStore()
                                  throws javax.mail.AuthenticationFailedException,
                                         javax.mail.MessagingException
        Get a Store object and connect to the store if not connected.
        Returns:
        an instance of Store
        Throws:
        javax.mail.AuthenticationFailedException - if authentication fails
        javax.mail.MessagingException - if other failure