From e6e2c6e5bbb2bc20d8201dd0b0a7cc61cc79358d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 13 Jun 2019 10:40:09 +0200 Subject: [PATCH] Run rules on browsed messages --- .../main/java/eu/faircode/email/BoundaryCallbackMessages.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index 39664c6792..6b2619e432 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -382,6 +382,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback 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()); + rules); found++; } db.message().setMessageFound(message.account, message.thread);