mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-29 05:24:23 +00:00
`.labelled(.init(key: "X\r\nA2 DELETE INBOX\r\nA3 NOOP", value: nil))` was written verbatim, injecting a command into CREATE; likewise SELECT, RENAME, FETCH, STORE, GETMETADATA, APPEND and SEARCH RETURN parameters. An ESEARCH data extension key `"X\r\nA1 OK"` injected a response. RFC 4466: `tagged-ext-label = tagged-label-fchar *tagged-label-char`. New `TaggedExtensionLabel` replaces the `String` keys of `KeyValue` and `OrderedDictionary` parameters; `init?(_:)` validates, literals trap on invalid input. The parser already enforces the production.