Keep drafts for 180 days

This commit is contained in:
M66B 2020-07-27 15:05:25 +02:00
parent 00957dfc72
commit 0234827b41
1 changed files with 6 additions and 0 deletions

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() {