@bobfrankston/rmfmail 1.1.124 → 1.1.125
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 +6 -2
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +7 -1
- package/client/app.js.map +1 -1
- package/client/app.ts +10 -1
- package/client/components/message-viewer.js +7 -1
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +7 -1
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +37 -2
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +35 -2
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-86400 → node_modules.npmglobalize-stash-30208}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -1638,7 +1638,7 @@ async function showMessage(accountId, uid, folderId, specialUse, isRetry = false
|
|
|
1638
1638
|
installPreviewControls(iframe);
|
|
1639
1639
|
} else if (msg.bodyText) {
|
|
1640
1640
|
const pre = document.createElement("pre");
|
|
1641
|
-
pre.style.cssText = "padding: 1rem; white-space: pre-wrap; word-break: break-word; font-family: system-ui, sans-serif; font-size: 17.5px; line-height: 1.5; color: #1a1a2e; background: #fff; margin: 0;";
|
|
1641
|
+
pre.style.cssText = "padding: 1rem; white-space: pre-wrap; word-break: break-word; font-family: system-ui, sans-serif; font-size: 17.5px; line-height: 1.5; color: #1a1a2e; background: #fff; margin: 0; height: 100%; overflow: auto;";
|
|
1642
1642
|
pre.innerHTML = linkifyText(msg.bodyText);
|
|
1643
1643
|
bodyEl.appendChild(pre);
|
|
1644
1644
|
} else {
|
|
@@ -7463,7 +7463,11 @@ function addComposeResizeHandles(wrapper, frame) {
|
|
|
7463
7463
|
function sanitizeQuotedBody(msg) {
|
|
7464
7464
|
const isPlainText = !msg.bodyHtml;
|
|
7465
7465
|
if (isPlainText) {
|
|
7466
|
-
|
|
7466
|
+
let escaped = String(msg.bodyText || "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\r\n?/g, "\n").replace(/\n/g, "<br>");
|
|
7467
|
+
escaped = escaped.replace(
|
|
7468
|
+
/(https?:\/\/[^\s<>"')\]]+)/g,
|
|
7469
|
+
'<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>'
|
|
7470
|
+
);
|
|
7467
7471
|
return `<div style="white-space:pre-wrap;font-family:inherit;margin:0">${escaped}</div>`;
|
|
7468
7472
|
}
|
|
7469
7473
|
let body = msg.bodyHtml;
|