1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Delete unseen messages timely

This commit is contained in:
M66B 2024-11-03 08:25:09 +01:00
parent 0af07e57b3
commit 1fe8818f5a

View file

@ -3938,7 +3938,7 @@ class Core {
Calendar cal_keep_unread = Calendar.getInstance();
cal_keep_unread.add(Calendar.DAY_OF_MONTH,
delete_unseen ? -keep_days * 6 : -Math.max(keep_days * 6, EntityFolder.DEFAULT_KEEP * 6));
delete_unseen ? -keep_days : -Math.max(keep_days * 6, EntityFolder.DEFAULT_KEEP * 6));
cal_keep_unread.set(Calendar.HOUR_OF_DAY, 0);
cal_keep_unread.set(Calendar.MINUTE, 0);
cal_keep_unread.set(Calendar.SECOND, 0);