apple-mail-mcp 2.17.0 → 2.17.2

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.
Files changed (3) hide show
  1. package/README.md +14 -5
  2. package/build/index.js +418 -232
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -470,11 +470,20 @@ matching `account` is passed. There are three cases:
470
470
  sort newest-first; count tools (`get-unread-count`, `get-mail-stats`) count each
471
471
  account via exactly one backend so a coverage mismatch can never double- (or
472
472
  under-) count.
473
- - **Default mailbox is resolved per account.** When you don't pin a `mailbox`, a
474
- fan-out search scopes each account to its own default — Gmail/Workspace to
475
- `[Gmail]/All Mail`, every other IMAP host (iCloud, etc.) to `INBOX` (since
476
- `[Gmail]/All Mail` is Gmail-only and selecting it elsewhere would silently drop
477
- that account). Pin a `mailbox` to search a wider scope on non-Gmail accounts.
473
+ - **An omitted mailbox on `search-messages` searches the account's entire
474
+ store, not just one default folder** (v2.17.1, [#199](https://github.com/sweetrb/apple-mail-mcp/issues/199)).
475
+ Per account, the fan-out uses the server-advertised RFC 6154 `\All`
476
+ mailbox when one exists (Gmail/Workspace's `[Gmail]/All Mail`); otherwise
477
+ it searches every selectable mailbox the server lists (iCloud, generic
478
+ IMAP), merges the matches, de-duplicates by Message-ID, and sorts
479
+ newest-first before applying `limit`/`offset`. A mailbox that can't be
480
+ selected or searched is named in the result instead of silently dropping
481
+ coverage. Scanning every mailbox on a large, deeply-nested account costs
482
+ one `SEARCH` + a bounded `FETCH` per mailbox over the pooled IMAP
483
+ connection — pin a `mailbox` to skip the fan-out when you already know
484
+ where to look. `list-messages` (no query) still defaults an omitted
485
+ mailbox to `INBOX` on every provider — only unscoped *search* scans the
486
+ whole account.
478
487
 
479
488
  If IMAP is **not** configured at all, every read behaves exactly as before
480
489
  (pure AppleScript). The three mailbox-**write** ops (`create-mailbox`,