@agenticmail/mcp 0.9.6 → 0.9.7

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/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23985,10 +23985,16 @@ Connected account (${result.relayResults[0].account}): ${result.relayResults.len
23985
23985
  const subject = origSubject.startsWith("Re:") ? origSubject : `Re: ${origSubject}`;
23986
23986
  const refs = Array.isArray(original.references) ? [...original.references] : [];
23987
23987
  if (original.messageId) refs.push(original.messageId);
23988
+ const fmtAddrs = (arr) => (Array.isArray(arr) ? arr : []).map((a) => typeof a === "string" ? a : a?.address ?? "").filter(Boolean).join(", ");
23989
+ const origTo = fmtAddrs(original.to);
23990
+ const origCc = fmtAddrs(original.cc);
23991
+ const headerLines = [`On ${original.date}, ${replyTo} wrote:`];
23992
+ if (origTo) headerLines.push(`To: ${origTo}`);
23993
+ if (origCc) headerLines.push(`Cc: ${origCc}`);
23988
23994
  const quotedBody = (original.text || "").split("\n").map((l) => `> ${l}`).join("\n");
23989
23995
  const fullText = `${args2.text}
23990
23996
 
23991
- On ${original.date}, ${replyTo} wrote:
23997
+ ${headerLines.join("\n")}
23992
23998
  ${quotedBody}`;
23993
23999
  let to = replyTo;
23994
24000
  let cc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/mcp",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "mcpName": "io.github.agenticmail/mcp",
5
5
  "description": "MCP server for AgenticMail — give any AI client real email and SMS capabilities",
6
6
  "type": "module",