1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 03:05:31 +00:00

Poll outlook user folders

This commit is contained in:
M66B 2019-10-19 20:28:10 +02:00
parent 713978a2ae
commit 7ba44afc85
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -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);