Repository navigation
v5.5.0
5.5.0 (2026-11-30)
Summary
ImapKit can now serve the Synthetic Email Corpus, 11,637 realistic fictional messages with real-world MIME structures, charsets and encoding quirks, with one flag: imapkit --corpus. The corpus is downloaded once into a cache and read straight from its archive, and a new imapkit corpus command finds the mailbox and UID of messages with a given feature.
Who should upgrade
- Anyone who tests a mail client against more than hand-written fixtures:
--corpusgives a realistic account with lists, newsletters, alerts, bounces and spam, in many languages. - No hurry otherwise, nothing changes unless
--corpusis used.
Highlights
imapkit --corpusserves the corpus release pinned in this version (v1.0.2).--corpus=v1.0.2or--corpus=latestchoose another release. The archive (about 420 MB) is downloaded once into the OS cache directory (IMAPKIT_CACHE_DIRchanges it), the download resumes after an interruption and is checked against its SHA-256 digest.- Mailboxes follow the corpus manifest: personal, business and transactional mail in INBOX, then Lists, Newsletters, Alerts, Invitations, Bounces, and Junk (with
\Junkunder SPECIAL-USE) for everything that came from a spam folder. Threads stay together, UIDs are stable, and internal dates come from the Date headers. imapkit corpus find quirk:bare-cr(orew:koi8-r/B,category:spam lang:et...) shows where matching messages are,imapkit corpus pull|list|cleanmanage the cache.--corpus-filterloads only matching messages (with their UIDs unchanged),--corpus-mutationsadds the deliberately broken variants in a Broken mailbox.loadCorpus()fromimapkit/lib/corpusdoes the same from test code.- New documentation page: Synthetic Email Corpus.