diff --git a/app/src/main/java/eu/faircode/email/MailService.java b/app/src/main/java/eu/faircode/email/MailService.java index 53d584185a..0867ade85b 100644 --- a/app/src/main/java/eu/faircode/email/MailService.java +++ b/app/src/main/java/eu/faircode/email/MailService.java @@ -109,10 +109,10 @@ public class MailService implements AutoCloseable { boolean trusted = false; String name = getDnsName(certificate); - if (name != null && matches(server, name)) { - Log.e("Certificate mismatch server=" + server + " name=" + name); + if (name != null && matches(server, name)) trusted = true; - } + else + Log.e("Certificate mismatch server=" + server + " name=" + name); if (getFingerPrint(certificate).equals(trustedFingerprint)) trusted = true;