mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-28 05:14:27 +00:00
The quoted-special cases were swapped: `\` encoded as `"\"` (unterminated), `"` as `"\\"` (a backslash). `pathSeparator: "\n"` was written as a raw LF inside `"…"`, and NUL silently became NIL. `(DQUOTE QUOTED-CHAR DQUOTE / nil)`, `QUOTED-CHAR = <TEXT-CHAR except quoted-specials> / "\" quoted-specials`. Swap the cases; parse the escaped forms; `MailboxPath.init` throws for CR, LF, CRLF, NUL.