Class ImapAccount

All Implemented Interfaces:
MailAccount

public class ImapAccount extends AbstractMailAccount
The default implementation of MailAccount for IMAP/IMAPS accounts.
  • Constructor Details

    • 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)