Default poll Gmail user folders

pull/146/head
M66B 6 years ago
parent a6f8b26c1f
commit a28ac1c0da

@ -1829,6 +1829,7 @@ public class ServiceSynchronize extends LifecycleService {
folder.type = EntityFolder.USER; folder.type = EntityFolder.USER;
folder.level = level; folder.level = level;
folder.synchronize = false; folder.synchronize = false;
folder.poll = ("imap.gmail.com".equals(account.host));
folder.sync_days = EntityFolder.DEFAULT_USER_SYNC; folder.sync_days = EntityFolder.DEFAULT_USER_SYNC;
folder.keep_days = EntityFolder.DEFAULT_USER_SYNC; folder.keep_days = EntityFolder.DEFAULT_USER_SYNC;
db.folder().insertFolder(folder); db.folder().insertFolder(folder);

Loading…
Cancel
Save