Improved/fixed SMTP EHLO address

This commit is contained in:
M66B
2020-04-08 14:59:33 +02:00
parent c25edaa3b2
commit 6ce72ae3f2
2 changed files with 25 additions and 23 deletions

View File

@@ -304,6 +304,12 @@ public class ConnectionHelper {
message.contains("User is authenticated but not connected") /* Outlook */));
}
static Boolean isSyntacticallyInvalid(Throwable ex) {
if (ex.getMessage() == null)
return false;
return ex.getMessage().toLowerCase().contains("syntactically invalid");
}
static boolean vpnActive(Context context) {
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
if (cm == null)