1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 10:47:28 +00:00

Skip scanning messages on search message ID failure

This commit is contained in:
M66B 2021-02-06 17:56:54 +01:00
parent 39a3cba26c
commit 1e508c0cd1

View file

@ -2378,6 +2378,9 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
} catch (CommandFailedException cfx) {
// unsupported charset or search criterion
eu.faircode.email.Log.e(cfx);
if (term instanceof MessageIDTerm)
throw new MessagingException(cfx.getMessage(), cfx);
return super.search(term);
} catch (SearchException sex) {
// too complex for IMAP