mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Fixed delete unseen option
This commit is contained in:
parent
79b01e8eb9
commit
a2f1febfe7
1 changed files with 2 additions and 1 deletions
|
@ -3937,7 +3937,8 @@ class Core {
|
||||||
cal_keep.set(Calendar.MILLISECOND, 0);
|
cal_keep.set(Calendar.MILLISECOND, 0);
|
||||||
|
|
||||||
Calendar cal_keep_unread = Calendar.getInstance();
|
Calendar cal_keep_unread = Calendar.getInstance();
|
||||||
cal_keep_unread.add(Calendar.DAY_OF_MONTH, -Math.max(keep_days * 6, EntityFolder.DEFAULT_KEEP * 6));
|
cal_keep_unread.add(Calendar.DAY_OF_MONTH,
|
||||||
|
delete_unseen ? keep_days * 6 : -Math.max(keep_days * 6, EntityFolder.DEFAULT_KEEP * 6));
|
||||||
cal_keep_unread.set(Calendar.HOUR_OF_DAY, 0);
|
cal_keep_unread.set(Calendar.HOUR_OF_DAY, 0);
|
||||||
cal_keep_unread.set(Calendar.MINUTE, 0);
|
cal_keep_unread.set(Calendar.MINUTE, 0);
|
||||||
cal_keep_unread.set(Calendar.SECOND, 0);
|
cal_keep_unread.set(Calendar.SECOND, 0);
|
||||||
|
|
Loading…
Reference in a new issue