E EMCAS | HQ
HQ Inbox
checking…
0 selected

Drafts

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.

Rules

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.

Knowledge Base

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.

Audit timeline

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.

Notes PIN

Notes · lock
This section is protected by a 4-digit PIN. The PIN is not kept in the browser — you will need to enter it in every new session. After 5 failed attempts you must wait 60 s.
Settings · Accounts, signatures, AI

Select an account on the left or click + to add a new one.

Keyboard shortcuts

Navigation

Next emailj
Previous emailk
Open preview↵
Search⌘F
Search (focus)⌘K

Email actions

Replyr
Reply all⇧r
Forwardf
Stars
Hidee
Delete#

Global

New emailc
Send draft⌘↵
Close windowesc
These shortcuts?

Density

Comfortable / Compact / Cosy⌥d

Theme

Light / Dark / Auto⌥t
EMCAS | HQ
"Mail that works for you, not for the provider."
Other inboxes show you what arrived. EMCAS | HQ decides what deserves your time. Your rules, your accounts, your AI — all on your own device. No data in someone else's cloud, no algorithm selling your attention.
Mail · v1
Treasury · later
Calendar · later
Tasks · later
Vault · later
Knowledge · later
v0.2 · Phase 1.7 · 2026-05-24
Auto-clear timer
Emails older than the selected number of days are automatically hidden in the console (server-side $EMC-Hidden label, no local tombstone). A background cron worker runs every hour.
Loading preview…
New email
reads the thread · never sends, only fills in
Generating…
—