@bobfrankston/rmfmail 1.1.160 → 1.1.161

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.
@@ -1474,7 +1474,8 @@ async function showMessage(accountId, uid, folderId, specialUse, isRetry = false
1474
1474
  references: cm.references || [],
1475
1475
  accounts: [],
1476
1476
  draftUid: cm.uid,
1477
- draftFolderId: cm.folderId
1477
+ draftFolderId: cm.folderId,
1478
+ draftId: cm.mailxDraftId || ""
1478
1479
  };
1479
1480
  sessionStorage.setItem("composeInit", JSON.stringify(init));
1480
1481
  document.dispatchEvent(new CustomEvent("mailx-compose", { detail: { mode: "draft" } }));
@@ -3429,9 +3430,10 @@ var init_message_list = __esm({
3429
3430
  subject.prepend(threadPill);
3430
3431
  }
3431
3432
  if (msg.preview) {
3433
+ const cleaned = msg.preview.replace(/data:image\/[a-z0-9.+-]+;base64,[A-Za-z0-9+/=\s]+/gi, "[image]").replace(/[A-Za-z0-9+/=]{200,}/g, "[image]");
3432
3434
  const preview = document.createElement("span");
3433
3435
  preview.className = "ml-preview";
3434
- preview.textContent = ` \u2014 ${msg.preview}`;
3436
+ preview.textContent = ` \u2014 ${cleaned}`;
3435
3437
  subject.appendChild(preview);
3436
3438
  }
3437
3439
  const date = document.createElement("span");
@@ -10410,7 +10412,8 @@ document.addEventListener("mailx-popout-message", (async (e) => {
10410
10412
  references: msg.references || [],
10411
10413
  accounts: accts.map((a) => ({ id: a.id, name: a.name, email: a.email, signature: a.signature, sig: a.sig })),
10412
10414
  draftUid: msg.uid,
10413
- draftFolderId: msg.folderId
10415
+ draftFolderId: msg.folderId,
10416
+ draftId: msg.mailxDraftId || ""
10414
10417
  };
10415
10418
  sessionStorage.setItem("composeInit", JSON.stringify(init));
10416
10419
  showComposeOverlay(msg.subject ? `Edit: ${msg.subject}` : "Edit draft");