Read email threads → categorize by urgency → draft responses for review → flag priorities → identify newsletters for unsubscribe. Use when processing an email backlog.
Source: $ARGUMENTS (defaults: ./emails/ → ./triage/)
Deterministic pipeline: read threads → categorize → draft → output review package.
| Priority | Label | Criteria |
|---|---|---|
| P1 | urgent | Deadline within 24h, financial/legal matter, executive sender |
| P2 | action-needed | Requires response or decision, no immediate deadline |
| P3 | fyi | Informational only, no action required |
| P4 | newsletter | Marketing, subscription, automated digest |
| P5 | spam | Unsolicited, phishing indicators, irrelevant |
$SOURCE_DIR.eml.mbox.jsonsubject, sender, date (most recent message), body (latest + context)[DRAFT — REVIEW BEFORE SENDING][Your name]$OUTPUT_DIR/triage-summary.md — all threads sorted by priority with drafts inline$OUTPUT_DIR/urgent.md — P1 threads only (quick action view)$OUTPUT_DIR/unsubscribe-list.md — P4 newsletter unsubscribe links$SOURCE_DIR/
*.eml | *.mbox | *.json — exported email files or mailbox dumps
$OUTPUT_DIR/
triage-summary.md — full categorized list with response drafts
urgent.md — P1-only quick action list
unsubscribe-list.md — newsletter unsubscribe links
stdout — counts: P1=N, P2=N, P3=N, P4=N, P5=N
$OUTPUT_DIR[body-unavailable][phishing-suspected]