@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.
- package/client/app.bundle.js +4 -12
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-viewer.js +13 -20
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +13 -20
- package/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-12436 → node_modules.npmglobalize-stash-57720}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -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-
|
|
1659
|
-
<div class="mv-system-
|
|
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
|
}
|