apple-mail-mcp 2.10.4 → 2.10.6
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 +10 -1
- package/build/index.js +2417 -817
- package/docs/IMAP-SETUP.md +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -485,6 +485,7 @@ for an explicitly-named IMAP account, never on an omitted account.
|
|
|
485
485
|
| `APPLE_MAIL_MCP_IMAP_ACCOUNTS` | No | — | JSON array of **additional** IMAP accounts for multi-account setups (see below) |
|
|
486
486
|
| `APPLE_MAIL_MCP_IMAP_IDLE` | No | `0` | Set `1` to enable IMAP IDLE push notifications (new-mail alerts) for every configured account |
|
|
487
487
|
| `APPLE_MAIL_MCP_IMAP_IDLE_MS` | No | `30000` | Idle timeout (ms) before a pooled IMAP connection is closed (`0` = never close) |
|
|
488
|
+
| `APPLE_MAIL_MCP_STATS_BUDGET_MS` | No | `25000` | Per-account wall-clock budget for `get-mail-stats` (minimum `1000`). Raise it for very large accounts |
|
|
488
489
|
|
|
489
490
|
**Multiple IMAP accounts (C2):** set `APPLE_MAIL_MCP_IMAP_ACCOUNTS` to a JSON array, e.g.
|
|
490
491
|
`[{"account":"Work","user":"me@co.com","host":"imap.co.com","keychainService":"imap.co.com"}]`.
|
|
@@ -1146,7 +1147,15 @@ Get mail statistics.
|
|
|
1146
1147
|
|-----------|------|----------|-------------|
|
|
1147
1148
|
| `account` | string | No | Limit to one account (uses fast IMAP `STATUS` when that account is IMAP-configured). Omit to merge across all accounts. |
|
|
1148
1149
|
|
|
1149
|
-
**Returns:** Total and per-account message/unread counts, plus recently received stats (24h, 7d, 30d).
|
|
1150
|
+
**Returns:** Total and per-account message/unread counts, plus recently received stats (24h, 7d, 30d). The scoped IMAP path also returns a `perMailbox` breakdown.
|
|
1151
|
+
|
|
1152
|
+
Gathering stats costs one IMAP `STATUS` per mailbox, and Gmail lists every label
|
|
1153
|
+
as a mailbox, so a large account is not instant. Accounts are counted
|
|
1154
|
+
**concurrently**, and each is bounded by `APPLE_MAIL_MCP_STATS_BUDGET_MS`
|
|
1155
|
+
(default `25000`). In the merged all-accounts path an account that fails or
|
|
1156
|
+
overruns is reported via `partial: true` + `failedAccounts` rather than being
|
|
1157
|
+
folded in as a silent zero; a scoped call to a single account returns an error
|
|
1158
|
+
naming the budget instead. Raise the budget if you have a very large account.
|
|
1150
1159
|
|
|
1151
1160
|
---
|
|
1152
1161
|
|