1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Keep drafts for 180 days

This commit is contained in:
M66B 2020-07-27 15:05:25 +02:00
parent 00957dfc72
commit 0234827b41

View file

@ -201,6 +201,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
static final int DEFAULT_SYNC = 7; // days
static final int DEFAULT_KEEP = 30; // days
static final int DEFAULT_KEEP_DRAFTS = 180; // days
private static final List<String> SYSTEM_FOLDER_SYNC = Collections.unmodifiableList(Arrays.asList(
INBOX,
@ -240,6 +241,11 @@ public class EntityFolder extends EntityOrder implements Serializable {
this.unified = true;
this.notify = true;
}
if (EntityFolder.DRAFTS.equals(type)) {
this.initialize = EntityFolder.DEFAULT_KEEP_DRAFTS;
this.keep_days = EntityFolder.DEFAULT_KEEP_DRAFTS;
}
}
static EntityFolder getOutbox() {