Poll outlook user folders

pull/164/head
M66B 5 years ago
parent 713978a2ae
commit 7ba44afc85

@ -1280,7 +1280,7 @@ class Core {
folder.type = (EntityFolder.SYSTEM.equals(type) ? type : EntityFolder.USER);
folder.synchronize = false;
folder.subscribed = subscribed;
folder.poll = ("imap.gmail.com".equals(account.host));
folder.poll = account.shouldPoll();
folder.sync_days = EntityFolder.DEFAULT_SYNC;
folder.keep_days = EntityFolder.DEFAULT_KEEP;
folder.selectable = selectable;

@ -147,6 +147,11 @@ public class EntityAccount extends EntityOrder implements Serializable {
return new String[]{name, null};
}
boolean shouldPoll() {
return ("imap.gmail.com".equals(host) ||
"outlook.office365.com".equals(host));
}
public JSONObject toJSON() throws JSONException {
JSONObject json = new JSONObject();
json.put("id", id);

Loading…
Cancel
Save