Skip to content

feat: --corpus serves the Synthetic Email Corpus - #106

Merged
andris9 merged 1 commit into
masterfrom
feat/corpus
Nov 30, 2026
Merged

andris9 merged 1 commit into
masterfrom
feat/corpus

Conversation

@andris9

@andris9 andris9 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator
  • imapkit --corpus[=version] downloads the Synthetic Email Corpus once into the OS cache directory (resumable, SHA-256 checked, pinned to v1.0.2 by default, latest on request) and serves its 11,637 messages, read straight from the archive.
  • Mailboxes from the manifest: INBOX (personal, business, transactional), Lists, Newsletters, Alerts, Invitations, Bounces, and Junk for everything from a spam folder. Threads stay with their first message, UIDs are stable, internal dates come from the Date header.
  • --corpus-filter and --corpus-mutations, imapkit corpus pull|list|find|clean, imapkit/lib/corpus (loadCorpus()), new docs page "Synthetic Email Corpus".
  • Checked end to end against the real v1.0.2 release: download and digest check (8.8s), full load in 2.0s, filtered loads decode only the kept messages.

🤖 Generated with Claude Code

imapkit --corpus downloads the Synthetic Email Corpus release pinned in this
version (v1.0.2) once into the cache directory and serves its 11,637
messages. The download resumes after an interruption and is checked against
its SHA-256 digest; the messages are read from the archive without
extracting it. --corpus=<version> and --corpus=latest choose other releases.

Mailboxes come from the manifest: personal, business and transactional mail
in INBOX, then Lists, Newsletters, Alerts, Invitations, Bounces, and Junk
(\Junk with SPECIAL-USE) for every message that came from a spam folder.
Threads stay in the mailbox of their first message, UIDs follow the corpus
ids and do not change with a filter, and the internal date is the Date
header in its own zone.

--corpus-filter loads only the messages that match key:value terms,
--corpus-mutations adds the broken variants as Broken, and imapkit corpus
pull|list|find|clean manage the cache and show the mailbox and UID of the
messages with a feature. imapkit/lib/corpus exports loadCorpus() for tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andris9
andris9 merged commit 110cf24 into master Nov 30, 2026
9 checks passed
@andris9
andris9 deleted the feat/corpus branch November 30, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant