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:
parent
39a3cba26c
commit
1e508c0cd1
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue