proton-mail-bridge-client 2.13.1 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -10
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/dist/config-env.d.ts +21 -0
- package/dist/config-env.d.ts.map +1 -0
- package/dist/config-env.js +327 -0
- package/dist/config-env.js.map +1 -0
- package/dist/index.d.ts +17 -118
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +125 -7914
- package/dist/index.js.map +1 -1
- package/dist/package-info.d.ts +2 -0
- package/dist/package-info.d.ts.map +1 -0
- package/dist/package-info.js +6 -0
- package/dist/package-info.js.map +1 -0
- package/dist/services/account-manager.d.ts +5 -0
- package/dist/services/account-manager.d.ts.map +1 -1
- package/dist/services/account-manager.js +79 -0
- package/dist/services/account-manager.js.map +1 -1
- package/dist/services/autoresponder-service.d.ts +199 -0
- package/dist/services/autoresponder-service.d.ts.map +1 -0
- package/dist/services/autoresponder-service.js +569 -0
- package/dist/services/autoresponder-service.js.map +1 -0
- package/dist/services/background-sync-service.d.ts +4 -1
- package/dist/services/background-sync-service.d.ts.map +1 -1
- package/dist/services/background-sync-service.js +13 -0
- package/dist/services/background-sync-service.js.map +1 -1
- package/dist/services/smtp-service.d.ts +3 -0
- package/dist/services/smtp-service.d.ts.map +1 -1
- package/dist/services/smtp-service.js +14 -2
- package/dist/services/smtp-service.js.map +1 -1
- package/dist/tools/actions.d.ts +51 -0
- package/dist/tools/actions.d.ts.map +1 -0
- package/dist/tools/actions.js +323 -0
- package/dist/tools/actions.js.map +1 -0
- package/dist/tools/args.d.ts +22 -0
- package/dist/tools/args.d.ts.map +1 -0
- package/dist/tools/args.js +159 -0
- package/dist/tools/args.js.map +1 -0
- package/dist/tools/attachments.d.ts +4 -0
- package/dist/tools/attachments.d.ts.map +1 -0
- package/dist/tools/attachments.js +126 -0
- package/dist/tools/attachments.js.map +1 -0
- package/dist/tools/audit.d.ts +7 -0
- package/dist/tools/audit.d.ts.map +1 -0
- package/dist/tools/audit.js +112 -0
- package/dist/tools/audit.js.map +1 -0
- package/dist/tools/bulk.d.ts +18 -0
- package/dist/tools/bulk.d.ts.map +1 -0
- package/dist/tools/bulk.js +138 -0
- package/dist/tools/bulk.js.map +1 -0
- package/dist/tools/compose.d.ts +39 -0
- package/dist/tools/compose.d.ts.map +1 -0
- package/dist/tools/compose.js +300 -0
- package/dist/tools/compose.js.map +1 -0
- package/dist/tools/context.d.ts +78 -0
- package/dist/tools/context.d.ts.map +1 -0
- package/dist/tools/context.js +219 -0
- package/dist/tools/context.js.map +1 -0
- package/dist/tools/definitions.d.ts +3679 -0
- package/dist/tools/definitions.d.ts.map +1 -0
- package/dist/tools/definitions.js +1920 -0
- package/dist/tools/definitions.js.map +1 -0
- package/dist/tools/diagnostics.d.ts +4 -0
- package/dist/tools/diagnostics.d.ts.map +1 -0
- package/dist/tools/diagnostics.js +475 -0
- package/dist/tools/diagnostics.js.map +1 -0
- package/dist/tools/drafts-support.d.ts +46 -0
- package/dist/tools/drafts-support.d.ts.map +1 -0
- package/dist/tools/drafts-support.js +162 -0
- package/dist/tools/drafts-support.js.map +1 -0
- package/dist/tools/drafts.d.ts +4 -0
- package/dist/tools/drafts.d.ts.map +1 -0
- package/dist/tools/drafts.js +873 -0
- package/dist/tools/drafts.js.map +1 -0
- package/dist/tools/folders.d.ts +4 -0
- package/dist/tools/folders.d.ts.map +1 -0
- package/dist/tools/folders.js +194 -0
- package/dist/tools/folders.js.map +1 -0
- package/dist/tools/index-refresh.d.ts +54 -0
- package/dist/tools/index-refresh.d.ts.map +1 -0
- package/dist/tools/index-refresh.js +134 -0
- package/dist/tools/index-refresh.js.map +1 -0
- package/dist/tools/merge.d.ts +28 -0
- package/dist/tools/merge.d.ts.map +1 -0
- package/dist/tools/merge.js +207 -0
- package/dist/tools/merge.js.map +1 -0
- package/dist/tools/message-actions.d.ts +4 -0
- package/dist/tools/message-actions.d.ts.map +1 -0
- package/dist/tools/message-actions.js +636 -0
- package/dist/tools/message-actions.js.map +1 -0
- package/dist/tools/reading.d.ts +4 -0
- package/dist/tools/reading.d.ts.map +1 -0
- package/dist/tools/reading.js +918 -0
- package/dist/tools/reading.js.map +1 -0
- package/dist/tools/resources.d.ts +42 -0
- package/dist/tools/resources.d.ts.map +1 -0
- package/dist/tools/resources.js +182 -0
- package/dist/tools/resources.js.map +1 -0
- package/dist/tools/results.d.ts +25 -0
- package/dist/tools/results.d.ts.map +1 -0
- package/dist/tools/results.js +50 -0
- package/dist/tools/results.js.map +1 -0
- package/dist/tools/sending.d.ts +4 -0
- package/dist/tools/sending.d.ts.map +1 -0
- package/dist/tools/sending.js +624 -0
- package/dist/tools/sending.js.map +1 -0
- package/dist/tools/templates-and-reminders.d.ts +4 -0
- package/dist/tools/templates-and-reminders.d.ts.map +1 -0
- package/dist/tools/templates-and-reminders.js +249 -0
- package/dist/tools/templates-and-reminders.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/bridge-version.d.ts +8 -0
- package/dist/utils/bridge-version.d.ts.map +1 -0
- package/dist/utils/bridge-version.js +20 -0
- package/dist/utils/bridge-version.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
Give Claude Desktop (or Cline, or any MCP client) full access to your Proton Mail inbox: read, search, send, draft, triage threads, manage folders, save attachments, and more —
|
|
27
|
+
Give Claude Desktop (or Cline, or any MCP client) full access to your Proton Mail inbox: read, search, send, draft, triage threads, manage folders, save attachments, and more — 103 MCP tools in total. Most of the same capabilities are also available as a full CLI for scripting, cron, and piped automation — no Claude required.
|
|
28
28
|
|
|
29
29
|
> **Using Proton Drive too?** See [**proton-drive-mcp**](https://github.com/googlarz/proton-drive-mcp), the companion MCP server and CLI for Proton Drive (upload, download, share and manage your encrypted files from Claude). Run both side by side to handle mail and files in one conversation, for example save an attachment from here, then upload it to Drive. More in [Related projects](#related-projects).
|
|
30
30
|
|
|
@@ -44,16 +44,19 @@ Give Claude Desktop (or Cline, or any MCP client) full access to your Proton Mai
|
|
|
44
44
|
- "Find the last email from `alice@example.com` and draft a reply for me to review." (nothing is sent until you say so)
|
|
45
45
|
- "Which of my emails have attachments from this month?"
|
|
46
46
|
- "Show me my drafts and tighten the oldest one."
|
|
47
|
-
5. **Optional:** `PROTONMAIL_READ_ONLY=true` to browse without being able to change anything, `PROTONMAIL_TOOL_TIER=core` for a smaller tool set (25 instead of
|
|
47
|
+
5. **Optional:** `PROTONMAIL_READ_ONLY=true` to browse without being able to change anything, `PROTONMAIL_TOOL_TIER=core` for a smaller tool set (25 instead of 103), and more accounts under [Multi-account support](#multi-account-support-v210). More recipes below in [Try it](#try-it-example-claude-prompts).
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
|
|
51
51
|
## What you get
|
|
52
52
|
|
|
53
|
-
- **Claude reads and manages your Proton Mail** — triage, reply, draft, archive, search, move, batch-act on threads, pull attachments
|
|
54
|
-
- **
|
|
55
|
-
- **
|
|
56
|
-
- **
|
|
53
|
+
- **Claude reads and manages your Proton Mail** — triage, reply, draft, archive, search, move, batch-act on threads, pull attachments (PDF text and pictures included), answer calendar invitations
|
|
54
|
+
- **Safety you choose** — `PROTONMAIL_MODE` presets (`read-only`, `drafts`, `assisted`, `full`), a send gate, confirmation for destructive actions, a per-action allowlist, and a [threat model](docs/threat-model.md) that says what is and is not covered
|
|
55
|
+
- **Several addresses at once** — each Proton login (or each address Bridge exposes) is its own isolated account with its own index, drafts and settings
|
|
56
|
+
- **Fast local search** — full-text search across your inbox from a local index that keeps its read state in step with the server
|
|
57
|
+
- **Automatic reply, per address, with rules** — off by default, with a preview of what it would do, draft-for-approval mode and working-hours; see [Autoresponder](#autoresponder-automatic-reply-per-address) (Proton's own auto-reply may be all you need)
|
|
58
|
+
- **Full CLI** — a dedicated command for every one of the 103 tools (plus a generic `tool <name>` passthrough), scriptable and pipeable; `doctor` checks every account and `report` prints a diagnostic summary for a bug report
|
|
59
|
+
- **Runs where you do** — Claude Desktop bundle, npm, Homebrew, or a [Docker image](#running-in-docker-headless-machines) for a headless machine
|
|
57
60
|
- **Privacy-native** — no third-party email service involved; your mail stays on your machine
|
|
58
61
|
|
|
59
62
|
**How this relates to Proton Bridge.** This is a layer on top of [Proton Mail Bridge](https://proton.me/mail/bridge), not a replacement for it. Bridge is Proton's official, local IMAP/SMTP gateway and the only supported way to reach a Proton mailbox from other software; this project talks to it. Bridge's own `--cli` mode manages Bridge itself (signing in, account details and the Bridge password, ports and other settings), it is not a mail client. Proton does not publish a terminal mail client, so reading, searching, drafting and sending from Claude or a script is what this adds on top, together with the safety controls above. Bridge has to be running and signed in.
|
|
@@ -293,7 +296,7 @@ Reload the Cline extension after saving. Proton Mail tools will appear in Cline'
|
|
|
293
296
|
For a server with no desktop, next to a headless Bridge. The image installs the published npm package and is published for each release to `ghcr.io/googlarz/proton-mail-bridge-client` (`:<version>` and `:latest`, linux/amd64 and linux/arm64). To build it yourself from this repo:
|
|
294
297
|
|
|
295
298
|
```bash
|
|
296
|
-
docker build -f docker/Dockerfile --build-arg VERSION=2.
|
|
299
|
+
docker build -f docker/Dockerfile --build-arg VERSION=2.14.0 -t proton-mail-bridge-client .
|
|
297
300
|
docker run -i --rm --network host \
|
|
298
301
|
-e PROTONMAIL_USERNAME=you@proton.me -e PROTONMAIL_PASSWORD_FILE=/run/secrets/bridge \
|
|
299
302
|
-v /path/to/bridge-password:/run/secrets/bridge:ro -v bridge-client-data:/data \
|
|
@@ -302,6 +305,33 @@ docker run -i --rm --network host \
|
|
|
302
305
|
|
|
303
306
|
`docker run -i` speaks MCP over stdio. The container must reach Bridge's IMAP and SMTP ports (`--network host`, or `--network container:<bridge>` to share Bridge's network). The CLI is in the same image: add `--entrypoint proton-mail-bridge-client` and a command such as `doctor`. If Bridge is reached by a host name (for example `host.docker.internal` or another container), its self-signed certificate fails verification: export it from Bridge and point `PROTONMAIL_TLS_CA_FILE` at it, or list the name in `PROTONMAIL_TLS_INSECURE_HOSTS`. The server has no network transport of its own; reaching it from a remote client needs your own wrapper. The image was checked to build, report its version, run as a non-root user and answer an MCP `initialize`; it has not been run against a real Bridge.
|
|
304
307
|
|
|
308
|
+
## Autoresponder (automatic reply per address)
|
|
309
|
+
|
|
310
|
+
**Proton Mail has its own auto-reply** (Settings → Filters / Forward and auto-reply; Proton lists it on its paid plans). It runs inside Proton, works while your computer is off, and applies to the whole account unless you write a filter. If that is enough, use it and leave this one off: enabling both would send each sender two replies. This one adds what a filter cannot do from a chat, and it only runs while this server runs.
|
|
311
|
+
|
|
312
|
+
An automatic reply for one address, plus a note that address appends to what it sends. **Off by default**, and it can send mail without asking each time, so it is held to stricter rules than a normal send:
|
|
313
|
+
|
|
314
|
+
- **Who gets a reply.** Only a person (not a list, not automatic mail, not a `no-reply`/`mailer-daemon` sender) who wrote to this address (To or Cc), after the rule was switched on and inside its dates, and whom you have not already answered since. One reply per sender per `replyEveryDays` days (default 7), at most `dailyLimit` a day (default 50). A reply is recorded before it is sent, so a failure never becomes a second one.
|
|
315
|
+
- **When.** After a background sync has indexed new mail, so only while this server runs with `PROTONMAIL_AUTO_SYNC` on; with several clients open, the instance holding the sync lock does it. `outsideHours` (with a `timezone`) limits it to when you are not at work.
|
|
316
|
+
- **What it does.** `mode: "send"` sends; `mode: "draft"` leaves a draft in your drafts for you to review and send. If the server may not send (`PROTONMAIL_MODE=drafts`, `ALLOW_SEND` off, or outbound mail confined to yourself), a reply becomes a draft by itself; if it may not write drafts either (read-only), it is refused.
|
|
317
|
+
- **Rules**, first match wins: by sender (`boss@example.com`, `*@client.example`), words in the subject, and whether you have written to the sender before (`known: "yes"/"no"`). Each gives `reply`, `draft` or `skip`, optionally with its own text. Mail that matches none gets the default reply.
|
|
318
|
+
- **Text.** Placeholders `{senderFirstName}`, `{senderName}`, `{senderAddress}`, `{subject}`, `{startsAt}`, `{endsAt}`.
|
|
319
|
+
- **Safety headers.** `Auto-Submitted: auto-replied`, `Precedence: bulk`, `X-Auto-Response-Suppress: All`; the reply threads under the message it answers.
|
|
320
|
+
- **Control.** Switching it on needs `confirmed: true` when `PROTONMAIL_CONFIRM_DESTRUCTIVE` is on and the server can send. Switching it off is always allowed, in every mode.
|
|
321
|
+
|
|
322
|
+
```text
|
|
323
|
+
preview_autoresponder account=work@example.com days=3 # what it WOULD do with recent mail; changes nothing
|
|
324
|
+
set_autoresponder account=work@example.com enabled=true confirmed=true
|
|
325
|
+
body="Hi {senderFirstName}, I am away until {endsAt} and will answer then."
|
|
326
|
+
endsAt=2027-01-04 timezone=Europe/Warsaw outgoingNote="I am away until 4 January."
|
|
327
|
+
rules=[{"name":"boss","from":["boss@example.com"],"action":"reply","body":"Urgent? Call my mobile."},
|
|
328
|
+
{"name":"clients","from":["*@client.example"],"action":"draft"},
|
|
329
|
+
{"known":"no","subjectContains":["unsubscribe"],"action":"skip"}]
|
|
330
|
+
get_autoresponder account=work@example.com # state, counts, who wrote, why mail was skipped, the log
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
`outgoingNote` is appended, after the signature, to every mail sent from that address while the rule is active (a send with `appendSignature: false` opts out). On the command line: `set-autoresponder`, `autoresponder` and `preview-autoresponder`. The rule, the log and the memory of who was answered live in `autoresponder.json` in the account's data directory; every account (every address Bridge exposes) has its own.
|
|
334
|
+
|
|
305
335
|
## Multi-account support (v2.1.0+)
|
|
306
336
|
|
|
307
337
|
Use more than one Proton mailbox from the same server: either several addresses of one account (Bridge's **Split Addresses** feature) or separate Proton accounts signed in to the same Bridge. Each one gets its own isolated service stack, local index, and drafts storage.
|
|
@@ -441,7 +471,7 @@ All commands support `--json` for machine-readable output, and any MCP tool is d
|
|
|
441
471
|
|
|
442
472
|
`<command> --help` prints that command's usage without running it. Flags accept `--flag value` or `--flag=value` (a value starting with `--` needs the `=` form, or must come after a bare `--`); unknown flags are an error. Exit codes: `0` success, `1` failure (including a failed `doctor` or `connection-status` check, or a failed item in a `batch`/`bulk-*` run), `2` usage error.
|
|
443
473
|
|
|
444
|
-
**Full command reference: [docs/cli.md](docs/cli.md)** (a named command for every one of the
|
|
474
|
+
**Full command reference: [docs/cli.md](docs/cli.md)** (a named command for every one of the 103 tools, across read, triage, compose, mailbox actions, folders, drafts, templates, analytics, and diagnostics).
|
|
445
475
|
|
|
446
476
|
---
|
|
447
477
|
|
|
@@ -463,7 +493,7 @@ A mode is a floor: the individual flags below can make things stricter (`PROTONM
|
|
|
463
493
|
All flags work in both the MCP server and CLI:
|
|
464
494
|
|
|
465
495
|
```bash
|
|
466
|
-
PROTONMAIL_TOOL_TIER=core # expose 25 core tools instead of all
|
|
496
|
+
PROTONMAIL_TOOL_TIER=core # expose 25 core tools instead of all 103 — saves context window
|
|
467
497
|
PROTONMAIL_READ_ONLY=true # disable all write operations
|
|
468
498
|
PROTONMAIL_ALLOW_SEND=false # disable SMTP sends only (other writes still work)
|
|
469
499
|
PROTONMAIL_CONFIRM_DESTRUCTIVE=true # require confirmed:true on send, reply, forward, delete
|
|
@@ -686,7 +716,7 @@ Measured in October 2026 (v2.7.0) on a copy of the same ~57,000-message index. "
|
|
|
686
716
|
- Defaults are bounded: `search_emails`/`search_indexed_emails` return 50 (pass `limit` for more), `list_drafts` 20, `list_scheduled_sends` 50 newest first. Each reports `hasMore`; page with `offset`.
|
|
687
717
|
- Draft and queued-message bodies are shortened to a preview in list and update responses (`bodyTruncated`, `bodyLength`); use `get_draft` for one full draft. Attachment content is never inlined in a listing.
|
|
688
718
|
- Large attachments: set `PROTONMAIL_ALLOW_FILE_DOWNLOAD_DIR` and pass `saveTo`, rather than raising `PROTONMAIL_MAX_INLINE_KB`.
|
|
689
|
-
- **`PROTONMAIL_TOOL_TIER=core`** exposes 25 tools instead of
|
|
719
|
+
- **`PROTONMAIL_TOOL_TIER=core`** exposes 25 tools instead of 103: about 7k tokens of tool definitions instead of about 21k (roughly 67% less; the earlier measurement with a reference tokenizer, 7k against 20k for 96 tools, scaled by the 3.7% the four newest tool definitions add), paid on every conversation that loads the server.
|
|
690
720
|
- Repeating an `update_draft` that changes nothing on a draft whose remote copy is already in sync does no store write and no IMAP upload. (A draft whose last sync failed, or that was edited with `syncToRemote:false`, still syncs.)
|
|
691
721
|
|
|
692
722
|
**Working with drafts**
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAgB,gBAAgB,EAAqB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAgB,gBAAgB,EAAqB,MAAM,kBAAkB,CAAC;AAqB1F,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,QAAQ,CAAC;CACjB;AAiBD,qBAAa,aAAc,SAAQ,KAAK;CAAG;AAM3C,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa,CAuD1D;AA0ID,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAOD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAqErD,CAAC;AAoBF,eAAO,MAAM,iBAAiB,YAAI,KAAK,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAGlE,wBAAgB,kBAAkB,IAAI,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAQlG;AAID,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA+DtD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcnE;AAyKD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAY5F;AAiND,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAiB5G;AAgGD,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGnD;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,EAAE,IAAI,SAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAS7G;AA01BD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,OAAO,GACb;IAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAYzE;AAySD,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAsE/C,CAAC;AA2EF,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAoP1C;AA4ED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGzD"}
|
package/dist/cli.js
CHANGED
|
@@ -14,6 +14,7 @@ import { ensureDestructiveConfirmed, ensureEmailActionAllowed, ensureMailboxWrit
|
|
|
14
14
|
import { isValidEmail, parseEmails } from "./utils/helpers.js";
|
|
15
15
|
import { checkForUpdate } from "./utils/update-check.js";
|
|
16
16
|
import { healthProblems } from "./utils/health.js";
|
|
17
|
+
import { bridgeVersionNote } from "./utils/bridge-version.js";
|
|
17
18
|
import { buildSchedule, defaultSchedulerSystem, findStableAlias, parseTimeOfDay, SCHEDULER_SYSTEMS } from "./utils/schedule-templates.js";
|
|
18
19
|
import { getClaudeDesktopInstallStatus } from "./scripts/check-claude-desktop.js";
|
|
19
20
|
import { installClaudeDesktopConfig } from "./scripts/install-claude-desktop.js";
|
|
@@ -801,6 +802,7 @@ async function runDoctor(parsed) {
|
|
|
801
802
|
slug: bundle.account.slug,
|
|
802
803
|
account: bundle.config.smtp.username,
|
|
803
804
|
ok: imapOk && smtpOk,
|
|
805
|
+
...(bridgeVersionNote(bundle.imapService.getServerInfo()) ? { bridgeNote: bridgeVersionNote(bundle.imapService.getServerInfo()) } : {}),
|
|
804
806
|
imapOk,
|
|
805
807
|
smtpOk,
|
|
806
808
|
folderCount,
|
|
@@ -911,7 +913,7 @@ async function runReport() {
|
|
|
911
913
|
userSet: bundle.config.smtp.secureExplicit === true,
|
|
912
914
|
check: smtp,
|
|
913
915
|
},
|
|
914
|
-
bridge: bundle.imapService.getServerInfo(),
|
|
916
|
+
bridge: { ...bundle.imapService.getServerInfo(), note: bridgeVersionNote(bundle.imapService.getServerInfo()) },
|
|
915
917
|
folderCount,
|
|
916
918
|
index: { storedMessageCount: index.storedMessageCount, updatedAt: index.updatedAt, isStale: index.isStale },
|
|
917
919
|
// Folder names can be as private as an address: only how many are synced.
|
|
@@ -1992,6 +1994,9 @@ export const TOOL_ONLY_COMMANDS = [
|
|
|
1992
1994
|
{ command: "cancel-snooze", tool: "cancel_snooze", positionals: ["id"], help: "Wake a snoozed email immediately" },
|
|
1993
1995
|
{ command: "list-snoozed", tool: "list_snoozed", positionals: [], help: "List snoozed emails (rediscover an id for cancel-snooze)" },
|
|
1994
1996
|
{ command: "create-template", tool: "create_template", positionals: ["name", "subject", "body"], help: "Save a reusable email template" },
|
|
1997
|
+
{ command: "preview-autoresponder", tool: "preview_autoresponder", positionals: [], help: "Show what the automatic reply would do with recent mail, without doing it (--account, --days)" },
|
|
1998
|
+
{ command: "autoresponder", tool: "get_autoresponder", positionals: [], help: "Show the automatic reply of an address (--account)" },
|
|
1999
|
+
{ command: "set-autoresponder", tool: "set_autoresponder", positionals: [], help: "Set up or switch off the automatic reply of an address (--enabled, --body, --subject, --startsAt, --endsAt, --outgoingNote, --mode, --timezone, --rules, --confirmed)" },
|
|
1995
2000
|
{ command: "list-templates", tool: "list_templates", positionals: [], help: "List saved email templates" },
|
|
1996
2001
|
{ command: "get-template", tool: "get_template", positionals: ["id"], help: "Get a saved template by id" },
|
|
1997
2002
|
{ command: "delete-template", tool: "delete_template", positionals: ["id"], help: "Delete a saved template" },
|