Check for 'Too many concurrent connections to this mailbox'

pull/172/head
M66B 5 years ago
parent e443b3d6ea
commit 2bf83fade3

@ -1467,8 +1467,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
private boolean isMaxConnections(String message) { private boolean isMaxConnections(String message) {
return (message != null && return (message != null &&
(message.contains("Maximum number of connections") /* Dovecot */ || (message.contains("Too many simultaneous connections") /* Gmail */ ||
message.contains("Too many simultaneous connections") /* Gmail */)); message.contains("Maximum number of connections") /* Dovecot */ ||
message.contains("Too many concurrent connections") /* to this mailbox */));
} }
private ConnectivityManager.NetworkCallback networkCallback = new ConnectivityManager.NetworkCallback() { private ConnectivityManager.NetworkCallback networkCallback = new ConnectivityManager.NetworkCallback() {

Loading…
Cancel
Save