0
selected
Drafts box — manually saved and AI-generated drafts before sending. Bulk approve / reject / edit with a preview pane.
Status: waiting for Phase 2 (Compose modal + draft persistence) and Phase 5 (AI orchestrator).
Backend endpoint GET /api/messages?status=draft already exists.
Per-sender and per-recipient rule engine. Matchers: from, domain,
to/cc, subject_contains, body_contains,
ai_classifier. Actions: move-to-folder, apply-tag, retention-days,
ai_action (none / draft / auto_send), stop_processing.
Status: rules table schema is ready; the engine is implemented in Phase 5.
Drag-to-reorder priority + visual matcher chain editor are part of that phase.
Per-account and per-rule KB — Markdown files in /opt/emc-email/kb/<account_id>/<rule_id|default>/*.md.
The AI orchestrator ranks them with BM25 and injects the top-k chunks into the prompt
when generating a draft.
Status: provider abstraction KBProvider is defined in the spec. The Markdown
editor + preview pane + file picker arrive in Phase 5.
v1.1 (Phase 7) adds semantic retrieval via sqlite-vec + RRF merge.
Timeline of AI calls — model, prompt hash, tokens (in/out), cost USD, KB files used in context, latency ms. Filters per account, per rule, per cost band.
Status: ai_audit table is ready (DB schema 0001_init.sql).
The worker that writes to it is enabled in Phase 5.
Select an account on the left or click + to add a new one.
$EMC-Hidden label,
no local tombstone). A background cron worker runs every hour.