mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-26 04:57:51 +00:00
`.no(.init(text: "No mailbox x\r\n* BYE pwned"))` was written verbatim, injecting an untagged response; likewise tagged, BYE, PREAUTH and continuation responses. RFC 9051: `text = 1*(TEXT-CHAR / UTF8-2 / UTF8-3 / UTF8-4)`. New `ResponseText.Text` replaces the `String`; `init?(_:)` rejects NUL, CR, LF and a leading space (the parser skips it), literals trap. Empty stays valid. The parser now accepts UTF-8 text.