1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Check for 'Too many concurrent connections to this mailbox'

This commit is contained in:
M66B 2020-01-26 10:50:12 +01:00
parent e443b3d6ea
commit 2bf83fade3

View file

@ -1467,8 +1467,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
private boolean isMaxConnections(String message) {
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() {