@bobfrankston/rmfmail 1.2.246 → 1.2.248
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 +17 -0
- package/client/app.bundle.js.map +3 -3
- package/client/components/message-list.js +32 -0
- package/client/components/message-list.js.map +1 -1
- package/client/components/message-list.ts +29 -0
- package/client/styles/components.css +15 -0
- package/package.json +1 -1
- package/packages/mailx-service/index.d.ts +14 -0
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +95 -4
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +83 -4
- package/packages/mailx-service/test/external-edit-sweep.test.mjs +48 -0
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-74296 → node_modules.npmglobalize-stash-63500}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -5094,6 +5094,17 @@ function appendMessages(body, accountId, items) {
|
|
|
5094
5094
|
row.attach(body);
|
|
5095
5095
|
}
|
|
5096
5096
|
}
|
|
5097
|
+
function formatSize2(bytes) {
|
|
5098
|
+
if (!bytes || bytes <= 0)
|
|
5099
|
+
return "";
|
|
5100
|
+
if (bytes < 1024)
|
|
5101
|
+
return "<1K";
|
|
5102
|
+
const kb = bytes / 1024;
|
|
5103
|
+
if (kb < 1024)
|
|
5104
|
+
return `${Math.round(kb)}K`;
|
|
5105
|
+
const mb = kb / 1024;
|
|
5106
|
+
return mb < 10 ? `${mb.toFixed(1)}M` : `${Math.round(mb)}M`;
|
|
5107
|
+
}
|
|
5097
5108
|
function formatDate(epochMs) {
|
|
5098
5109
|
const d = new Date(epochMs);
|
|
5099
5110
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -5282,11 +5293,17 @@ var init_message_list = __esm({
|
|
|
5282
5293
|
const icons = document.createElement("span");
|
|
5283
5294
|
icons.className = "ml-status-icons";
|
|
5284
5295
|
renderStatusIcons(icons, msg);
|
|
5296
|
+
const size = document.createElement("span");
|
|
5297
|
+
size.className = "ml-size";
|
|
5298
|
+
size.textContent = formatSize2(msg.size);
|
|
5299
|
+
if (msg.size > 0)
|
|
5300
|
+
size.title = `${msg.size.toLocaleString()} bytes`;
|
|
5285
5301
|
const dateText = document.createElement("span");
|
|
5286
5302
|
dateText.className = "ml-date-text";
|
|
5287
5303
|
dateText.textContent = formatDate(effectiveDate(msg));
|
|
5288
5304
|
dateText.title = dateBasis === "received" ? "Received date" : "Sent date";
|
|
5289
5305
|
date.appendChild(icons);
|
|
5306
|
+
date.appendChild(size);
|
|
5290
5307
|
date.appendChild(dateText);
|
|
5291
5308
|
row.appendChild(avatar);
|
|
5292
5309
|
row.appendChild(flag);
|