Revert "Auto disable full text search"

This reverts commit 1b214a4637.
This commit is contained in:
M66B 2021-05-16 13:34:07 +02:00
parent 1b214a4637
commit f7886a5760
1 changed files with 0 additions and 17 deletions

View File

@ -572,23 +572,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
}
private Message[] search(boolean utf8, String[] keywords, IMAPProtocol protocol, State state) throws IOException, MessagingException, ProtocolException {
try {
return _search(utf8, keywords, protocol, state);
} catch (ProtocolException ex) {
Response r = ex.getResponse();
if (criteria.in_message &&
r != null && r.isNO() &&
"full text search not supported".equals(r.getRest())) {
// gmx.net, gmx.com, mail.com, web.de
Log.e(ex);
criteria.in_message = false;
return _search(utf8, keywords, protocol, state);
} else
throw ex;
}
}
private Message[] _search(boolean utf8, String[] keywords, IMAPProtocol protocol, State state) throws IOException, MessagingException, ProtocolException {
EntityLog.log(context, "Search utf8=" + utf8);
SearchTerm terms = criteria.getTerms(utf8, state.ifolder.getPermanentFlags(), keywords);