@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.
- package/dist/index.js +7 -1
- 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
|
-
|
|
23997
|
+
${headerLines.join("\n")}
|
|
23992
23998
|
${quotedBody}`;
|
|
23993
23999
|
let to = replyTo;
|
|
23994
24000
|
let cc;
|