mirror of https://github.com/M66B/FairEmail.git
Keep drafts for 180 days
This commit is contained in:
parent
00957dfc72
commit
0234827b41
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue