Class ImapAccount

    • Constructor Detail

      • ImapAccount

        public ImapAccount​(String host,
                           String port,
                           String user,
                           String password)
        Create a new IMAP account.
        Parameters:
        host - server hostname
        port - server port
        user - login name
        password - login password
      • ImapAccount

        public ImapAccount​(String host,
                           String port,
                           String user,
                           String password,
                           String channel)
        Create a new IMAP/IMAPS account.

        If the given channel is MailConstants.CHANNEL_SSL then it will use imaps protocol over ssl.

        Parameters:
        host - server hostname
        port - server port
        user - login name
        password - login password
        channel - encryption channel (ssl, starttls or null)