@bobfrankston/rmfmail 1.1.120 → 1.1.121

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.
@@ -1652,20 +1652,12 @@ async function showMessage(accountId, uid, folderId, specialUse, isRetry = false
1652
1652
  } else {
1653
1653
  const emlPath = msg.emlPath || "";
1654
1654
  const attCount = msg.attachments?.length || 0;
1655
- const flags = Array.isArray(msg.flags) ? msg.flags.join(", ") : "";
1656
1655
  const appVer = (document.querySelector(".app-version, #app-version, #status-version")?.textContent || "").trim();
1656
+ const headline = attCount > 0 ? "This message has attachments but no body text." : "This message has no body text \u2014 only a subject.";
1657
+ const crumbs = `mailx${appVer ? " " + appVer : ""} \xB7 ${accountId}/${uid}${emlPath ? " \xB7 " + emlPath : ""}`;
1657
1658
  bodyEl.innerHTML = `<div class="mv-system-message">
1658
- <div class="mv-system-tag">mailx${appVer ? " " + escapeHtml(appVer) : ""}</div>
1659
- <div class="mv-system-title">Body parsed empty</div>
1660
- <div class="mv-system-body" style="white-space:pre-line">${escapeHtml([
1661
- `Parser produced 0 bytes for both bodyHtml and bodyText.`,
1662
- emlPath ? `.eml file: ${emlPath}` : `.eml file: (no body_path in DB)`,
1663
- `Attachments: ${attCount}`,
1664
- flags ? `Flags: ${flags}` : "",
1665
- `Message: ${accountId}/${uid}${folderId ? ` (folder ${folderId})` : ""}`,
1666
- ``,
1667
- `Likely causes: (a) sender included only attachments/images, (b) the fetched .eml is a stub (0 bytes on disk \u2014 fetch was incomplete), (c) the body is signed/encrypted in a way the parser doesn't unwrap.`
1668
- ].filter(Boolean).join("\n"))}</div>
1659
+ <div class="mv-system-body">${escapeHtml(headline)}</div>
1660
+ <div class="mv-system-body" style="color:var(--color-text-muted);font-size:0.8em;margin-top:8px">${escapeHtml(crumbs)}</div>
1669
1661
  </div>`;
1670
1662
  }
1671
1663
  }