pastilhas 0892161423 AGENTS.md, so both harnesses find the same guidance
opencode discovers AGENTS.md and nothing else; claude code discovers CLAUDE.md.
this repo had neither, so an agent sent to change something here arrived with no
guidance at all under either.

it deliberately does NOT repeat README.md. that file says what the plugin is,
for someone deciding whether to install it. this one answers the other question:
i have to change something in here, what will i break.

the facts in it are read from the repository rather than recalled — the panel
keys from web/panels.ts, the tables from db/schema.ts, the permission keys, the
host binaries and the route claims from manifest.ts. presence is the declaration
everywhere in this system, so the file says what the platform will actually
conclude from these files existing.

CLAUDE.md beside it is a pointer, not a copy: two copies drift and the stale one
is the one somebody reads.
2026-08-27 07:24:08 +00:00

Email

IMAP and Gmail accounts, synced into a per-account SQLite store on your own machine and searchable offline.

  • Your mail stays local. Each account gets its own emails.db under the platform's data directory, with an FTS5 index and Gmail-style search operators. Nothing is sent anywhere to be indexed.
  • IMAP or Gmail. Generic IMAP over imapflow, or Gmail's history API where an account is connected through the platform's Google integration.
  • Real-time. IMAP IDLE watchers push new mail as it lands, with a slow cron poll as a backstop.
  • Composing and sending, with attachments, over the account's own SMTP.

Status — read this before installing

This plugin has never been run. It was extracted from the Officer platform on 2026-08-17, where it had been switched off since 2026-08-13 — its database table was commented out of the schema and therefore never created, so nothing has exercised sync, sending or the UI since. The code is believed good (the sidecar starts cleanly and typechecks) but that is not the same as working.

Treat the first install as the first test. docs/email-plugin-extraction.md in the platform repository records what was moved and what was decided.

Known gaps

  • Credentials are stored unencrypted. email_accounts.credentials is a jsonb blob holding the IMAP app password in the clear. The platform has a secret store with per-purpose keys and this plugin does not use it yet. Deliberately left alone during the extraction so that a first-install failure has exactly one possible cause; it is the first thing to fix afterwards.
  • The email_db agent tool is not part of this plugin. It is resolved at runtime from PI_TOOLS_DIRS and the platform points it at the account's SQLite store. The email chat panel's prompt assumes it exists.
  • Account management placement is unsettled — see the extraction doc.
S
Description
IMAP and Gmail accounts, synced locally and searchable offline
Readme
1.8 MiB
Languages
TypeScript 100%