apple-mail-mcp 2.8.10 → 2.8.12

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 (2) hide show
  1. package/build/index.js +34 -2
  2. package/package.json +4 -2
package/build/index.js CHANGED
@@ -58296,7 +58296,7 @@ var require_imap_flow = __commonJS({
58296
58296
  );
58297
58297
  for (let key of Object.keys(this.clientInfo)) {
58298
58298
  if (typeof this.clientInfo[key] === "string") {
58299
- this.clientInfo[key] = this.clientInfo[key].normalize("NFD").replace(/\p{Diacritic}/gu, "");
58299
+ this.clientInfo[key] = this.clientInfo[key].normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "");
58300
58300
  }
58301
58301
  }
58302
58302
  this.serverInfo = null;
@@ -77455,7 +77455,38 @@ var AppleMailManager = class {
77455
77455
  let listCommand;
77456
77456
  if (mailbox) {
77457
77457
  const targetMailbox = this.resolveMailbox(mailbox, targetAccount);
77458
- listCommand = `
77458
+ const gmailInbox = isInboxScope(mailbox) ? gmailReceivingMailboxes(this.getCachedMailboxNames(targetAccount)) : null;
77459
+ if (gmailInbox) {
77460
+ const nameList = appleScriptLowerNameList(gmailInbox);
77461
+ listCommand = `
77462
+ set outputText to ""
77463
+ set _timedOut to false
77464
+ set _notSearched to ""
77465
+ set _wantNames to ${nameList}
77466
+ set msgCount to 0
77467
+ set skipped to 0
77468
+ set seenIds to {}
77469
+ repeat with mb in mailboxes
77470
+ if msgCount >= ${limit} then exit repeat
77471
+ set mbName to ""
77472
+ try
77473
+ set mbName to name of mb
77474
+ end try
77475
+ ignoring case
77476
+ if _wantNames contains mbName then
77477
+ try
77478
+ ${buildMessageRowLoop({ collection: `messages of mb ${fromFilter}`, limit, offset, dedup: true, withAttachments: true, trailing: ` & "${FIELD_SEP}" & mbName` })}
77479
+ on error _errMsg number _errNum
77480
+ set _timedOut to true
77481
+ set _notSearched to _notSearched & mbName & "${DIAG_ITEM_SEP}"
77482
+ end try
77483
+ end if
77484
+ end ignoring
77485
+ end repeat
77486
+ return outputText & "${DIAG_MARKER}timedOut=" & (_timedOut as string) & "${DIAG_FIELD_SEP}skipped=${DIAG_FIELD_SEP}notSearched=" & _notSearched
77487
+ `;
77488
+ } else {
77489
+ listCommand = `
77459
77490
  set outputText to ""
77460
77491
  set _timedOut to false
77461
77492
  set _notSearched to ""
@@ -77470,6 +77501,7 @@ var AppleMailManager = class {
77470
77501
  end try
77471
77502
  return outputText & "${DIAG_MARKER}timedOut=" & (_timedOut as string) & "${DIAG_FIELD_SEP}skipped=${DIAG_FIELD_SEP}notSearched=" & _notSearched
77472
77503
  `;
77504
+ }
77473
77505
  } else {
77474
77506
  const scanGuard = scanThreshold > 0 ? `mbCount > ${scanThreshold}` : "false";
77475
77507
  listCommand = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-mail-mcp",
3
- "version": "2.8.10",
3
+ "version": "2.8.12",
4
4
  "description": "MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
@@ -79,7 +79,8 @@
79
79
  "postcss": "^8.5.15"
80
80
  },
81
81
  "scripts": {
82
- "build": "tsc --noEmit && esbuild src/index.ts src/cli.ts --bundle --platform=node --format=esm --outdir=build --banner:js=\"import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);\"",
82
+ "preinstall": "node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"",
83
+ "build": "tsc --noEmit && esbuild src/index.ts src/cli.ts --bundle --platform=node --format=esm --target=node20 --outdir=build --banner:js=\"import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);\"",
83
84
  "start": "node build/index.js",
84
85
  "dev": "tsc --watch",
85
86
  "test": "vitest run",
@@ -93,6 +94,7 @@
93
94
  "format": "prettier --write src",
94
95
  "format:check": "prettier --check src",
95
96
  "typecheck": "tsc --noEmit",
97
+ "sync:skills": "node scripts/sync-skills.mjs",
96
98
  "version": "node scripts/sync-plugin-version.mjs && git add .claude-plugin .agents/plugins codex .hermes-plugin .antigravity-plugin"
97
99
  }
98
100
  }