From a5bed77a80ffc422ab5a7a61b5fed86136fa1931 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 Jan 2022 22:38:26 +0100 Subject: [PATCH] Added TLS protocols --- app/src/main/java/eu/faircode/email/MessageHelper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 234f998b77..867232051d 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -2033,11 +2033,18 @@ public class MessageHelper { int w = with.indexOf(' '); String protocol = (w < 0 ? with : with.substring(0, w)).toLowerCase(Locale.ROOT); + if ("local".equals(protocol)) // Exim + continue; if ("mapi".equals(protocol)) // https://en.wikipedia.org/wiki/MAPI continue; + if ("httprest".equals(protocol)) // by gmailapi.google.com + continue; + if ("_http".equals(protocol)) // ??? + continue; if (!protocol.contains("mtp")) return null; - if (!protocol.contains("mtps")) + if (!protocol.contains("mtps" /* STARTTLS */) && + !protocol.contains("_mtpa" /* AUTH */)) return false; }