Fixed server search

This commit is contained in:
M66B 2021-08-13 18:36:17 +02:00
parent 392d4cc8c4
commit 09e61bebe6
1 changed files with 5 additions and 5 deletions

View File

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