apple / swift-nio-imap

A Swift project that provides an implementation of the IMAP4rev1 protocol, built upon SwiftNIO.
Apache License 2.0
97 stars 13 forks source link

`MailboxData.searchSort` should be rolled into `.search` #727

Open danieleggert opened 1 year ago

danieleggert commented 1 year ago

This is https://www.rfc-editor.org/rfc/rfc4551#section-3.5 which allows for a server response such as

SEARCH 1 2 3 (MODSEQ 4)

Instead of its own case, this should probably just be part of

public enum MailboxData: Hashable {
    …
    case search([UnknownMessageIdentifier], ModificationSequenceValue? = nil)
    …
}

and MailboxData.SearchSort should be removed.