Added TLS protocols

This commit is contained in:
M66B 2022-01-07 22:38:26 +01:00
parent 8ecca62c90
commit a5bed77a80
1 changed files with 8 additions and 1 deletions

View File

@ -2033,11 +2033,18 @@ public class MessageHelper {
int w = with.indexOf(' '); int w = with.indexOf(' ');
String protocol = (w < 0 ? with : with.substring(0, w)).toLowerCase(Locale.ROOT); 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 if ("mapi".equals(protocol)) // https://en.wikipedia.org/wiki/MAPI
continue; continue;
if ("httprest".equals(protocol)) // by gmailapi.google.com
continue;
if ("_http".equals(protocol)) // ???
continue;
if (!protocol.contains("mtp")) if (!protocol.contains("mtp"))
return null; return null;
if (!protocol.contains("mtps")) if (!protocol.contains("mtps" /* STARTTLS */) &&
!protocol.contains("_mtpa" /* AUTH */))
return false; return false;
} }