apple-mail-mcp 2.20.16 → 2.20.17

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 +5 -11
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -83437,16 +83437,10 @@ function buildMessageRowLoop(opts) {
83437
83437
  -- outside date range; skip
83438
83438
  else` : "";
83439
83439
  const dateClose = dateFilter ? `end if` : "";
83440
- const attBulk = withAttachments ? `
83441
- set _atts to mail attachments of _msgs` : "";
83442
83440
  const attRow = withAttachments ? `
83443
83441
  set msgHasAtt to "false"
83444
83442
  try
83445
- if _bulkOK then
83446
- if (count of (item _i of _atts)) > 0 then set msgHasAtt to "true"
83447
- else
83448
- if (count of mail attachments of (item _i of _msgs)) > 0 then set msgHasAtt to "true"
83449
- end if
83443
+ if (count of mail attachments of (item _i of _msgs)) > 0 then set msgHasAtt to "true"
83450
83444
  end try` : "";
83451
83445
  const attField = withAttachments ? ` & "${FIELD_SEP}" & msgHasAtt` : "";
83452
83446
  return `
@@ -83459,7 +83453,7 @@ function buildMessageRowLoop(opts) {
83459
83453
  set _dates to date received of _msgs
83460
83454
  set _reads to read status of _msgs
83461
83455
  set _flags to flagged status of _msgs
83462
- set _flagColors to flag index of _msgs${attBulk}
83456
+ set _flagColors to flag index of _msgs
83463
83457
  on error
83464
83458
  set _bulkOK to false
83465
83459
  end try
@@ -84821,7 +84815,7 @@ ${indent}end try${this.sanitizeFragment("_uacct", indent)}${this.sanitizeFragmen
84821
84815
  ignoring case
84822
84816
  if _wantNames contains (name of mb) then
84823
84817
  try
84824
- ${buildMessageRowLoop({ collection: `messages of mb ${searchCondition}`, limit, dedup: true, dateFilter, trailing: ` & "${FIELD_SEP}" & mbName` })}
84818
+ ${buildMessageRowLoop({ collection: `messages of mb ${searchCondition}`, limit, dedup: true, dateFilter, withAttachments: true, trailing: ` & "${FIELD_SEP}" & mbName` })}
84825
84819
  on error _errMsg number _errNum
84826
84820
  set _timedOut to true
84827
84821
  set _notSearched to _notSearched & mbName & "${DIAG_ITEM_SEP}"
@@ -84843,7 +84837,7 @@ ${indent}end try${this.sanitizeFragment("_uacct", indent)}${this.sanitizeFragmen
84843
84837
  set _notSearched to "${escapeForAppleScript(targetMailbox)}${DIAG_ITEM_SEP}"
84844
84838
  else
84845
84839
  try
84846
- ${buildMessageRowLoop({ collection: `messages of theMailbox ${searchCondition}`, limit, dateFilter })}
84840
+ ${buildMessageRowLoop({ collection: `messages of theMailbox ${searchCondition}`, limit, dateFilter, withAttachments: true })}
84847
84841
  on error _errMsg number _errNum
84848
84842
  set _timedOut to true
84849
84843
  set _notSearched to "${escapeForAppleScript(targetMailbox)}${DIAG_ITEM_SEP}"
@@ -84881,7 +84875,7 @@ ${indent}end try${this.sanitizeFragment("_uacct", indent)}${this.sanitizeFragmen
84881
84875
  set _skipped to _skipped & mbName & " (" & (mbCount as string) & ")${DIAG_ITEM_SEP}"
84882
84876
  else
84883
84877
  try
84884
- ${buildMessageRowLoop({ collection: `messages of mb ${searchCondition}`, limit, dedup: true, dateFilter, trailing: ` & "${FIELD_SEP}" & mbName` })}
84878
+ ${buildMessageRowLoop({ collection: `messages of mb ${searchCondition}`, limit, dedup: true, dateFilter, withAttachments: true, trailing: ` & "${FIELD_SEP}" & mbName` })}
84885
84879
  on error _errMsg number _errNum
84886
84880
  set _timedOut to true
84887
84881
  set _notSearched to _notSearched & mbName & "${DIAG_ITEM_SEP}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-mail-mcp",
3
- "version": "2.20.16",
3
+ "version": "2.20.17",
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",