@bobfrankston/rmfmail 1.2.83 → 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 +3 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +8 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +8 -0
- 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/package.json +1 -1
package/client/app.js
CHANGED
|
@@ -1121,6 +1121,14 @@ async function openCompose(mode, overrideMsg, overrideAccountId) {
|
|
|
1121
1121
|
init.cc = Array.isArray(msg.cc) ? msg.cc : [];
|
|
1122
1122
|
init.subject = msg.subject || "";
|
|
1123
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();
|
|
1124
1132
|
}
|
|
1125
1133
|
// Carry the original message's attachments into forward / edit-as-new so
|
|
1126
1134
|
// reopening a sent message to edit (or forwarding one) keeps its files —
|