1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Return all messages in no search conditions

This commit is contained in:
M66B 2021-04-29 13:24:37 +02:00
parent 9189afe909
commit aac6a6de65

View file

@ -574,7 +574,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
SearchTerm terms = criteria.getTerms(utf8, state.ifolder.getPermanentFlags(), keywords);
if (terms == null)
throw new ProtocolException("No search conditions");
return state.ifolder.getMessages();
SearchSequence ss = new SearchSequence(protocol);
Argument args = ss.generateSequence(terms, utf8 ? StandardCharsets.UTF_8.name() : null);