๐ ๏ธ Development
Working on mail-intake itself.
๐ Repository layout
| Path | Purpose |
|---|---|
mail_intake/ |
The library package (adapters, auth, credentials, parsers, ingestion, models) |
mail_intake/*.pyi |
Type stubs kept in sync with implementations |
tests/ |
Unit and integration tests (mock transports, no live mail) |
docs/lib/ |
Generated library reference (docforge, flat layout) |
docs/mcp/ |
Machine-readable bundle served by the MCP server |
docs/wiki/ |
This hand-written wiki |
๐ง Setup
OAuth credential files (
credentials*.json,token.pickle,client_secret_*.json) are gitignored โ keep them out of the repository.
๐งช Tests
Run the suite (no network or live Gmail required):
Coverage spans ingestion flows, credential stores, parsers, and auth against mock providers.
โ Quality gates
The CI quality gate runs, matching the Drone pipeline:
๐ Building documentation (docforge)
The site is generated by docforge
and served per kind under site/{kind}:
--module-is-sourcerenders the flatdocs/lib/layout (no nesting undermail_intake/), matchingdocforge.nav.ymlanddocs/mkdocs.lib.yml.--mcpregenerates the structured bundle indocs/mcp/.--wikibuilds this wiki.
Preview locally:
๐ Read Next
- Extending Mail Intake โ custom adapters and stores.
- Overview โ the core architecture.