use of com.zimbra.cs.mailclient.imap.ImapConnection in project zm-mailbox by Zimbra.
the class TestRemoteImapMultiServer method connectAsProxy.
private ImapConnection connectAsProxy(Server server) throws IOException {
ImapConfig config = new ImapConfig(server.getServiceHostname());
config.setPort(server.getImapBindPort());
config.setAuthenticationId(USER);
config.setAuthenticatorFactory(ZIMBRA_AUTH_FACTORY);
config.setMechanism(ZimbraAuthenticator.MECHANISM);
config.getLogger().setLevel(Log.Level.trace);
ImapConnection connection = new ImapConnection(config);
connection.connect();
return connection;
}
use of com.zimbra.cs.mailclient.imap.ImapConnection in project zm-mailbox by Zimbra.
the class TestRemoteImapMultiServer method connect.
private ImapConnection connect(Server server) throws IOException {
ImapConfig config = new ImapConfig(server.getServiceHostname());
config.setPort(server.getImapBindPort());
config.setAuthenticationId(USER);
config.getLogger().setLevel(Log.Level.trace);
ImapConnection connection = new ImapConnection(config);
connection.connect();
return connection;
}
Aggregations