1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Run rules on browsed messages

This commit is contained in:
M66B 2019-06-13 10:40:09 +02:00
parent 27cb003558
commit e6e2c6e5bb

View file

@ -382,6 +382,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
}
}
List<EntityRule> rules = db.rule().getEnabledRules(browsable.id);
int found = 0;
while (index >= 0 && found < pageSize && !destroyed) {
Log.i("Boundary server index=" + index);
@ -412,7 +414,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
account, browsable,
ifolder, (IMAPMessage) isub[j],
true,
new ArrayList<EntityRule>());
rules);
found++;
}
db.message().setMessageFound(message.account, message.thread);