mirror of https://github.com/M66B/FairEmail.git
Added TLS protocols
This commit is contained in:
parent
8ecca62c90
commit
a5bed77a80
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue