mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 17:40:34 +01:00
Small improvement
This commit is contained in:
@@ -212,7 +212,7 @@ public class MailService implements AutoCloseable {
|
||||
}
|
||||
|
||||
public String connect(String host, int port, int auth, String user, String password, String fingerprint) throws MessagingException {
|
||||
SSLSocketFactoryService factory;
|
||||
SSLSocketFactoryService factory = null;
|
||||
try {
|
||||
factory = new SSLSocketFactoryService(host, insecure, fingerprint);
|
||||
properties.put("mail." + protocol + ".ssl.socketFactory", factory);
|
||||
@@ -222,7 +222,7 @@ public class MailService implements AutoCloseable {
|
||||
properties.put("mail." + protocol + ".ssl.checkserveridentity", Boolean.toString(!insecure));
|
||||
if (insecure)
|
||||
properties.put("mail." + protocol + ".ssl.trust", "*");
|
||||
throw new MessagingException("Trust issues", ex);
|
||||
Log.e("Trust issues", ex);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user