From b16cbbdc18e245d88c20df0ebb500090d881065b Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 8 Jan 2022 08:01:41 +0100 Subject: [PATCH] Added option to enable TLS check --- .../java/eu/faircode/email/AdapterMessage.java | 7 ++++--- .../java/eu/faircode/email/FragmentOptions.java | 2 +- .../faircode/email/FragmentOptionsSynchronize.java | 14 +++++++++++++- .../res/layout/fragment_options_synchronize.xml | 14 +++++++++++++- app/src/main/res/values/strings.xml | 1 + 5 files changed, 32 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 0a0d6e8fbb..56db5afe4e 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -257,6 +257,7 @@ public class AdapterMessage extends RecyclerView.Adapter 1 && !Boolean.TRUE.equals(message.tls)) - auths--; + boolean verified = (auths == 3 && (!check_tls || Boolean.TRUE.equals(message.tls))); ibAuth.setImageLevel(auths + 1); ibAuth.setImageTintList(ColorStateList.valueOf( - auths < 3 ? colorControlNormal : colorVerified)); + verified ? colorVerified : colorControlNormal)); ibAuth.setVisibility(auths > 0 ? View.VISIBLE : View.GONE); } else ibAuth.setVisibility(View.GONE); @@ -6162,6 +6162,7 @@ public class AdapterMessage extends RecyclerView.Adapter + + Synchronize shared folder lists Manage folder subscriptions Check message authentication + Check transport layer security (TLS) Check reply address on synchronizing messages Check sender email addresses on synchronizing messages Check if the sender\'s domain name is on a spam block list