-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥅 Return empty array for missing server response
When the server fails to send a response for certain commands, we can workaround this by simply returning an empty array. This should work for `SEARCH`, `SORT`, `THREAD`, and `ENABLED`, each of which expects a single response. I did not do the same for `CAPABILITY` for two reasons: * unless written carefully, it could break the cache. * the server _must_ at least return `* CAPABILITY IMAP4rev1`, so a missing response may indicate a bigger problems.
- Loading branch information
Showing
2 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters