Fallback to sent time

This commit is contained in:
M66B 2022-05-01 08:57:13 +02:00
parent 270b520b9f
commit 26ba21928f
1 changed files with 2 additions and 0 deletions

View File

@ -3654,6 +3654,8 @@ class Core {
if (full.contains(isub[j]))
try {
Date received = isub[j].getReceivedDate();
if (received == null || received.getTime() == 0)
received = isub[j].getSentDate();
boolean unseen = (sync_unseen && !isub[j].isSet(Flags.Flag.SEEN));
boolean flagged = (sync_flagged && isub[j].isSet(Flags.Flag.FLAGGED));
if (received != null && received.getTime() < keep_time && !unseen && !flagged) {