email-triage
IMAP email scanning and triage with AI classification via a local Ollama LLM. Scans unread emails, categorizes them as urgent, needs-response, informational,...
IMAP email scanning and triage with AI classification via a local Ollama LLM. Scans unread emails, categorizes them as urgent, needs-response, informational,...
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Scan your IMAP inbox, classify emails into priority categories, and surface the ones that need attention. Uses a local LLM (Ollama) for intelligent classification with a rule-based heuristic fallback when Ollama is unavailable.
| Icon | Category | Description |
|---|---|---|
| ๐ด | | Outages, security alerts, legal, payment failures, time-critical |
| ๐ก | | Business inquiries, questions, action items requiring a reply |
| ๐ต | | Receipts, confirmations, newsletters, automated notifications |
| โซ | | Marketing, promotions, unsolicited junk |
All configuration is via environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
| โ | โ | IMAP server hostname |
| โ | | IMAP port (SSL) |
| โ | โ | IMAP username / email address |
| โ | โ | IMAP password or app-specific password |
| โ | | Path to the JSON state file |
| โ | | Ollama API endpoint |
| โ | | Ollama model for classification |
EMAIL_TRIAGE_STATE (default: ./data/email-triage.json) โ Persistent state file tracking classified emails and surfacing status# Scan inbox and classify new unread emails python3 scripts/email/email-triage.py scanScan with verbose output (shows each classification)
python3 scripts/email/email-triage.py scan --verbose
Dry run โ scan and classify but don't save state
python3 scripts/email/email-triage.py scan --dry-run
Show unsurfaced important emails (urgent + needs-response)
python3 scripts/email/email-triage.py report
Same as report but JSON output (for programmatic use)
python3 scripts/email/email-triage.py report --json
Mark reported emails as surfaced (so they don't appear again)
python3 scripts/email/email-triage.py mark-surfaced
Show triage statistics
python3 scripts/email/email-triage.py stats
report surfaces only unsurfaced urgent and needs-response emails, sorted by priority.mark-surfaced flags reported emails so they won't appear in future reports.scan periodically, then report --json to check for items needing attention.scan โ report --json โ act on results โ mark-surfaced.No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
ยฉ 2026 Torly.ai. All rights reserved.