Search on sent time too for Outlook

This commit is contained in:
M66B 2021-11-24 12:17:22 +01:00
parent 9d9721fe9d
commit 29452619a5
1 changed files with 2 additions and 0 deletions

View File

@ -3028,6 +3028,8 @@ class Core {
SearchTerm searchTerm = dateTerm;
Flags flags = ifolder.getPermanentFlags();
if (!account.use_date && account.isOutlook())
searchTerm = new OrTerm(searchTerm, new SentDateTerm(ComparisonTerm.GE, new Date(sync_time)));
if (sync_nodate)
searchTerm = new OrTerm(searchTerm, new ReceivedDateTerm(ComparisonTerm.LT, new Date(365 * 24 * 3600 * 1000L)));
if (sync_unseen && flags.contains(Flags.Flag.SEEN))