mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Keep drafts for 180 days
This commit is contained in:
parent
00957dfc72
commit
0234827b41
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue