Commit Graph
10 Commits
Author SHA1 Message Date
Daniel Eggert be08e0dce0 Add ExtensionKey for tagged-extension parameters
Generic over the extended type, so a STORE key can't be used where a FETCH key is expected.
2026-11-03 14:59:35 +01:00
Daniel Eggert 8fddeca15e Add CharacterSetName for SEARCH, SORT, and BADCHARSET
`.sort(…, charset: "UTF-8 ALL\r\nA2 DELETE INBOX\r\nA3 SEARCH", …)` was
written verbatim, injecting a command into SORT / SEARCH / ESEARCH.
`.badCharset(["a)] x\r\n* BYE"])` injected a response. Quoted names
also didn't round-trip: `"a b"` parsed, then encoded bare.

RFC 3501: `charset = atom / quoted`. New `CharacterSetName` replaces
`String`; valid = non-empty `TEXT-CHAR`. Written as an atom where it is
one (`CHARSET UTF-8` unchanged), quoted otherwise, never a literal. The
parser rejects quoted names it couldn't write back.
2026-11-03 11:30:26 +01:00
Daniel Eggert 740fe66c92 Add FilterName for SEARCH FILTER
`.filter("x\r\nA2 DELETE INBOX")` was written verbatim, injecting a
command into SEARCH.

RFC 5466: `filter-name = 1*<any ATOM-CHAR except "/">`. New `FilterName`
type replaces the `String` payload of `SearchKey.filter`; `init?(_:)`
validates, literals trap on invalid input.
2026-11-03 11:30:26 +01:00
Ross Cooperman 544677dbaa Add Gmail X-GM-MSGID, X-GM-THRID, and X-GM-RAW search keys (#853) 2026-10-10 18:48:53 +02:00
Daniel Eggert 6c8cfaddcc Add a imperative IMAP client and an imap-tool CLI (#841) 2026-09-25 16:16:41 +01:00
Daniel Eggert 273b5602db Update UIDBATCHES RFC number (#842) 2026-08-10 14:46:51 -04:00
Daniel Eggert e67fc89e63 RFC 9979 (#833) 2026-07-18 20:57:21 +02:00
Daniel Eggert 34883bcba6 Update style in documentation (#822) 2026-04-28 18:06:43 +02:00
Oliver Drobnik 2f7d3b73a8 Refactor: Remove FetchModificationResponse, use ModificationSequenceValue directly (#818) 2026-04-23 19:03:14 +02:00
Daniel Eggert 871d0122c9 Better docc comments (#815) 2026-04-16 09:20:29 -07:00