public class ImapAccount extends AbstractMailAccount
MailAccount for IMAP/IMAPS accounts.| Constructor and Description |
|---|
ImapAccount(String host,
String port,
String user,
String password)
Create a new IMAP account.
|
ImapAccount(String host,
String port,
String user,
String password,
String channel)
Create a new IMAP/IMAPS account.
|
getSession, setConnectionTimeout, setProperties, setTimeoutpublic ImapAccount(String host, String port, String user, String password)
host - server hostnameport - server portuser - login namepassword - login passwordpublic ImapAccount(String host, String port, String user, String password, String channel)
If the given channel is MailConstants.CHANNEL_SSL then it will
use imaps protocol over ssl.
host - server hostnameport - server portuser - login namepassword - login passwordchannel - encryption channel (ssl, starttls or null)