secrets_path (email_imap.py)

JIGGA · email, email-imap, smtp, secret-storage

Provider-agnostic email — IMAP read + SMTP draft/send (the last Milestone A connector gap; Gmail/Workspace users already have `gog`). Opt-in first-party capability (`jigga capabilities install email-imap`), BYO credentials: host/port/username/app-password collected by the setup w

"""Provider-agnostic email — IMAP read + SMTP draft/send (the last Milestone A
connector gap; Gmail/Workspace users already have `gog`).

Opt-in first-party capability (`jigga capabilities install email-imap`), BYO
credentials: host/port/username/app-password collected by the setup wizard into
`~/.jigga/secrets/email_imap.json` (0600). stdlib only (imaplib / smtplib /
email).

Actions:
- `email.search` — friendly filters (`unread`, `today`, `from:x`, `subject:x`,
  free text) mapped to IMAP criteria; returns headers, newest first.
- `email.get` — one message's plain-text body (truncated).
- `email.draft` — file-first: drafts land in `~/.jigga/email/drafts/<id>.json`
  for review; nothing leaves the machine.
- `email.send` — SMTP send of a draft (`draft_id`) or direct to/subject/body.
  The

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key