mirror of
https://github.com/Cocoanetics/SwiftMail.git
synced 2026-03-17 20:02:25 +00:00
Related to #11 Implement the `SORT` command to allow clients to search and sort messages on the server. * **SearchCommand.swift** - Update `SearchCommand` to accept sort criteria as an optional parameter. - Modify `toTaggedCommand` method to handle sort criteria. * **IMAPServer.swift** - Add sort criteria parameter to the existing `search` function. - Add capability check for `SORT` before executing `SearchCommand`. - Implement fallback to `SEARCH` if `SORT` is not supported. * **SearchHandler.swift** - Update `SearchHandler` to handle responses for both `SEARCH` and `SORT` commands. - Modify error handling to include `SORT` command failures. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Cocoanetics/SwiftMail/issues/11?shareId=XXXX-XXXX-XXXX-XXXX).