mirror of https://github.com/M66B/FairEmail.git
Poll outlook user folders
This commit is contained in:
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…
Reference in New Issue