mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Added idle restart for Outlook
This commit is contained in:
@@ -1518,6 +1518,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
if (account.protocol != EntityAccount.TYPE_IMAP)
|
||||
iservice.setLeaveOnServer(account.leave_on_server);
|
||||
|
||||
if ("outlook.office365.com".equalsIgnoreCase(account.host)) {
|
||||
int timeout = prefs.getInt("timeout", EmailService.DEFAULT_CONNECT_TIMEOUT);
|
||||
iservice.setRestartIdleInterval(timeout * 2 * 6); // 20 x 2 x 6 = 4 min
|
||||
}
|
||||
|
||||
final Date lastStillHere = new Date(0);
|
||||
|
||||
iservice.setListener(new StoreListener() {
|
||||
|
||||
Reference in New Issue
Block a user