|
|
@ -560,12 +560,10 @@ public class EmailService implements AutoCloseable {
|
|
|
|
|
|
|
|
|
|
|
|
private void _connect(
|
|
|
|
private void _connect(
|
|
|
|
InetAddress address, int port, boolean require_id,
|
|
|
|
InetAddress address, int port, boolean require_id,
|
|
|
|
String _user, Authenticator authenticator,
|
|
|
|
String user, Authenticator authenticator,
|
|
|
|
SSLSocketFactoryService factory) throws MessagingException {
|
|
|
|
SSLSocketFactoryService factory) throws MessagingException {
|
|
|
|
isession = Session.getInstance(properties, authenticator);
|
|
|
|
isession = Session.getInstance(properties, authenticator);
|
|
|
|
|
|
|
|
|
|
|
|
String user = (TextUtils.isEmpty(_user) ? null : _user);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isession.setDebug(debug || log);
|
|
|
|
isession.setDebug(debug || log);
|
|
|
|
if (debug || log)
|
|
|
|
if (debug || log)
|
|
|
|
isession.setDebugOut(new PrintStream(new OutputStream() {
|
|
|
|
isession.setDebugOut(new PrintStream(new OutputStream() {
|
|
|
|