Revert "Yandex search workaround"

This reverts commit be6f48a5de.
pull/194/head
M66B 4 years ago
parent 1d30f2387e
commit 39a3cba26c

@ -2378,13 +2378,6 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
} catch (CommandFailedException cfx) {
// unsupported charset or search criterion
eu.faircode.email.Log.e(cfx);
Response r = cfx.getResponse();
if (r != null && r.isNO()) {
String rest = r.getRest();
if (rest != null && rest.contains("[UNAVAILABLE]")) // Yandex
throw new MessagingException(cfx.getMessage(), cfx);
}
return super.search(term);
} catch (SearchException sex) {
// too complex for IMAP

Loading…
Cancel
Save