Revert "Fetch all seen and unseen on fetch all"

This reverts commit 26fb019ffe.
pull/197/head
M66B 4 years ago
parent 1d43f6c8a6
commit 4704e9ba89

@ -2530,15 +2530,9 @@ class Core {
// Reduce list of local uids
Flags flags = ifolder.getPermanentFlags();
SearchTerm searchTerm;
if (sync_time == 0 && flags.contains(Flags.Flag.SEEN))
searchTerm = new OrTerm(
new FlagTerm(new Flags(Flags.Flag.SEEN), false),
new FlagTerm(new Flags(Flags.Flag.SEEN), true));
else
searchTerm = account.use_date
? new SentDateTerm(ComparisonTerm.GE, new Date(sync_time))
: new ReceivedDateTerm(ComparisonTerm.GE, new Date(sync_time));
SearchTerm searchTerm = account.use_date
? new SentDateTerm(ComparisonTerm.GE, new Date(sync_time))
: new ReceivedDateTerm(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))

Loading…
Cancel
Save