@bobfrankston/rmfmail 1.2.83 → 1.2.84

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.
@@ -8180,6 +8180,9 @@ async function openCompose(mode, overrideMsg, overrideAccountId) {
8180
8180
  init.cc = Array.isArray(msg.cc) ? msg.cc : [];
8181
8181
  init.subject = msg.subject || "";
8182
8182
  init.bodyHtml = editAsNewBody(msg);
8183
+ const origFrom = msg.from?.address ? bareAddress(msg.from.address) : "";
8184
+ const ownFrom = origFrom && accounts.some((acc) => bareAddress(acc.email || "") === origFrom) ? origFrom : void 0;
8185
+ init.fromAddress = ownFrom || detectReplyFrom();
8183
8186
  }
8184
8187
  if (msg && (mode === "editAsNew" || mode === "forward") && Array.isArray(msg.attachments) && msg.attachments.length) {
8185
8188
  const msgAccountId = current?.accountId || accountId;