mirror of https://github.com/M66B/FairEmail.git
parent
1b214a4637
commit
f7886a5760
|
@ -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 {
|
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);
|
EntityLog.log(context, "Search utf8=" + utf8);
|
||||||
|
|
||||||
SearchTerm terms = criteria.getTerms(utf8, state.ifolder.getPermanentFlags(), keywords);
|
SearchTerm terms = criteria.getTerms(utf8, state.ifolder.getPermanentFlags(), keywords);
|
||||||
|
|
Loading…
Reference in New Issue