@bobfrankston/rmfmail 1.2.82 → 1.2.84
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 +40 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +10 -1
- package/client/app.js.map +1 -1
- package/client/app.ts +10 -1
- package/client/components/message-viewer.js +29 -3
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +28 -3
- package/client/compose/compose.bundle.js +1 -0
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +9 -0
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +8 -0
- package/client/index.html +1 -0
- package/package.json +1 -1
package/client/app.js
CHANGED
|
@@ -6,7 +6,7 @@ import { initFolderTree, refreshFolderTree, updateFolderCounts, setFolderSynced,
|
|
|
6
6
|
import { initMessageList, loadMessages, loadUnifiedInbox, loadSearchResults, reloadCurrentFolder, clearSearchMode, getSelectedMessages, markBodiesCached, getCurrentFocused, releaseFocus, removeMessagesAndReconcile, setRowFlagged, scrollFocusedIntoView, refreshPriorityIndex, revealMessage, selectAllVisible, exitMultiSelect } from "./components/message-list.js";
|
|
7
7
|
import { seenOf, flaggedOf, draftOf, setSeen, setFlagged } from "@bobfrankston/mailx-types";
|
|
8
8
|
import { initTabs, setActiveView as setActiveTabView, openTab } from "./components/tabs.js";
|
|
9
|
-
import { getCurrentMessage, initViewer, popOutCurrentMessage, printCurrentMessage, toggleFullscreenPreview, showPreviewBodyMenu, wrapHtmlBody } from "./components/message-viewer.js";
|
|
9
|
+
import { getCurrentMessage, initViewer, popOutCurrentMessage, popOutToWindow, printCurrentMessage, toggleFullscreenPreview, showPreviewBodyMenu, wrapHtmlBody } from "./components/message-viewer.js";
|
|
10
10
|
import { connectWebSocket, onWsEvent, triggerSync, syncAccount, reauthenticate, getAccounts, getFolders, deleteMessage, deleteMessages, undeleteMessage, restartServer, getSyncPending, getVersion, getSettings, saveSettings, getAutocompleteSettings, saveAutocompleteSettings, repairAccounts, updateFlags, markAsSpamMessages, logClientEvent, sendMessage as apiSendMessage, subscribeStore, cancelServerSearch, installConsoleCapture, getAttachment } from "./lib/api-client.js";
|
|
11
11
|
import * as messageState from "./lib/message-state.js";
|
|
12
12
|
// FIRST THING. Captures every console.log/warn/error + window errors +
|
|
@@ -714,6 +714,7 @@ document.getElementById("btn-back")?.addEventListener("touchend", backToList);
|
|
|
714
714
|
// once), mobile toggles `body.viewer-fullscreen` for full-screen reading.
|
|
715
715
|
// Threshold and behavior live in popOutCurrentMessage.
|
|
716
716
|
document.getElementById("mv-popout")?.addEventListener("click", () => popOutCurrentMessage());
|
|
717
|
+
document.getElementById("mv-popout-window")?.addEventListener("click", () => popOutToWindow());
|
|
717
718
|
document.getElementById("btn-print")?.addEventListener("click", () => printCurrentMessage());
|
|
718
719
|
// Close folder panel when a folder is selected (narrow mode)
|
|
719
720
|
// Also reset narrow navigation: show message list, hide viewer
|
|
@@ -1120,6 +1121,14 @@ async function openCompose(mode, overrideMsg, overrideAccountId) {
|
|
|
1120
1121
|
init.cc = Array.isArray(msg.cc) ? msg.cc : [];
|
|
1121
1122
|
init.subject = msg.subject || "";
|
|
1122
1123
|
init.bodyHtml = editAsNewBody(msg);
|
|
1124
|
+
// From: preserve the original sender when it's one of YOUR accounts
|
|
1125
|
+
// (resending your own message keeps the same identity); otherwise fall
|
|
1126
|
+
// back to received-identity detection. Without this, edit-as-new always
|
|
1127
|
+
// defaulted to the primary account — "a different from address" (Bob
|
|
1128
|
+
// 2026-06-29).
|
|
1129
|
+
const origFrom = msg.from?.address ? bareAddress(msg.from.address) : "";
|
|
1130
|
+
const ownFrom = origFrom && accounts.some((acc) => bareAddress(acc.email || "") === origFrom) ? origFrom : undefined;
|
|
1131
|
+
init.fromAddress = ownFrom || detectReplyFrom();
|
|
1123
1132
|
}
|
|
1124
1133
|
// Carry the original message's attachments into forward / edit-as-new so
|
|
1125
1134
|
// reopening a sent message to edit (or forwarding one) keeps its files —
|