1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Fixed server search

This commit is contained in:
M66B 2021-08-13 18:36:17 +02:00
parent 392d4cc8c4
commit 09e61bebe6

View file

@ -585,12 +585,12 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
(IMAPStore) state.iservice.getStore(), state.ifolder, (MimeMessage) isub[j],
true, true,
rules, astate, null);
if (message != null) // SQLiteConstraintException
if (criteria == null)
found++; // browsed
else
found += db.message().setMessageFound(message.id);
// SQLiteConstraintException
if (message != null && criteria == null)
found++; // browsed
}
if (message != null && criteria != null)
found += db.message().setMessageFound(message.id);
Log.i("Boundary matched=" + (message == null ? null : message.id) + " found=" + found);
} catch (MessageRemovedException | MessageRemovedIOException ex) {
Log.w(browsable.name + " boundary server", ex);