Sync email via mbsync (IMAP) and index via notmuch. Run before email-analyzer queries or as part of data-sync. First-time setup requires ~/.mbsyncrc and notmuch database init — see SETUP.md.
Pulls mail from IMAP servers via mbsync and indexes it with notmuch.
cd .claude/skills/email-ingest
uv run ingest.py
Or called automatically by data-sync.
mbsync -a to sync all configured IMAP accountsnotmuch new to index new messages into the notmuch databaselogs/activity.mdmbsync (from isync) installed: brew install isyncnotmuch installed: brew install notmuch~/.mbsyncrc configured (see SETUP.md)notmuch setup once)See SETUP.md for complete walkthrough:
~/.mbsyncrc with MaxMessages 1000 (limit initial sync)notmuch setup (interactive)notmuch new to index.mbsyncrc and ~/.notmuch-configMaxMessages 1000 in .mbsyncrc to limit historyEmail sync is a one-shot operation: pull, index, done. No streaming, no webhooks. Run it on a schedule (daily is plenty) via data-sync.