mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +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) {
|
} catch (CommandFailedException cfx) {
|
||||||
// unsupported charset or search criterion
|
// 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);
|
return super.search(term);
|
||||||
} catch (SearchException sex) {
|
} catch (SearchException sex) {
|
||||||
// too complex for IMAP
|
// too complex for IMAP
|
||||||
|
|
Loading…
Reference in a new issue