@bobfrankston/rmfmail 1.2.221 → 1.2.222
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/bin/mailx.js +30 -18
- package/bin/mailx.js.map +1 -1
- package/bin/mailx.ts +31 -18
- package/client/app.bundle.js +11 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +21 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +21 -0
- package/client/compose/compose.bundle.js +65 -1
- package/client/compose/compose.bundle.js.map +3 -3
- package/client/compose/compose.js +90 -0
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +72 -0
- package/client/lib/rmf-tiny.js +7 -1
- package/package.json +3 -3
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-39780 → node_modules.npmglobalize-stash-104584}/.package-lock.json +0 -0
package/bin/mailx.js
CHANGED
|
@@ -178,6 +178,34 @@ const isDaemon = hasFlag("daemon"); // internal: re-spawned detached process
|
|
|
178
178
|
process.exit(0);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
+
/** App entries appended to the NATIVE right-click menu inside compose. msger
|
|
182
|
+
* keeps the WebView2 default menu (that is the only place spellcheck
|
|
183
|
+
* suggestions live) and gates these to editable targets, so they never show
|
|
184
|
+
* on the read-only list or message preview.
|
|
185
|
+
*
|
|
186
|
+
* Clipboard entries are ours rather than the browser's on purpose: Chromium
|
|
187
|
+
* OMITS Cut/Copy from the default menu when the caret is collapsed, and a
|
|
188
|
+
* right-click on a word is a collapsed caret — so the menu the user actually
|
|
189
|
+
* sees while editing has no Cut or Copy (Bob 2026-08-07). Ours expand to the
|
|
190
|
+
* word under the caret first, exactly like the formatting entries below
|
|
191
|
+
* already do, so "right-click a word → Copy" means what it looks like.
|
|
192
|
+
*
|
|
193
|
+
* Ids are dispatched to compose.ts via window.__msgerContextCommand — one
|
|
194
|
+
* list, both windows (in-window compose overlay + popout compose), because
|
|
195
|
+
* drift between the two is what produced "right mouse isn't showing any
|
|
196
|
+
* formatting options" in the first place (Bob 2026-07-18). */
|
|
197
|
+
const COMPOSE_CONTEXT_MENU_ITEMS = [
|
|
198
|
+
{ id: "cut", label: "Cut" },
|
|
199
|
+
{ id: "copy", label: "Copy" },
|
|
200
|
+
{ id: "paste", label: "Paste" },
|
|
201
|
+
{ id: "bold", label: "Bold" },
|
|
202
|
+
{ id: "italic", label: "Italic" },
|
|
203
|
+
{ id: "underline", label: "Underline" },
|
|
204
|
+
{ id: "strike", label: "Strikethrough" },
|
|
205
|
+
{ id: "link", label: "Link…" },
|
|
206
|
+
{ id: "clear", label: "Clear formatting" },
|
|
207
|
+
{ id: "source", label: "View HTML source…" },
|
|
208
|
+
];
|
|
181
209
|
/** Windows mailto: registration — registry keys via reg.exe. Shared by the
|
|
182
210
|
* `-register-mailto` CLI flag and the Settings → "Make default email app"
|
|
183
211
|
* menu action (injected into MailxService; the registry work stays HERE in
|
|
@@ -2509,15 +2537,7 @@ RFC 5322 with CRLF line endings. Bodies are quoted-printable encoded (readable i
|
|
|
2509
2537
|
// App entries on the NATIVE right-click menu (native stays
|
|
2510
2538
|
// so spellcheck suggestions survive). compose.ts maps ids
|
|
2511
2539
|
// to editor commands via window.__msgerContextCommand.
|
|
2512
|
-
contextMenuItems:
|
|
2513
|
-
{ id: "bold", label: "Bold" },
|
|
2514
|
-
{ id: "italic", label: "Italic" },
|
|
2515
|
-
{ id: "underline", label: "Underline" },
|
|
2516
|
-
{ id: "strike", label: "Strikethrough" },
|
|
2517
|
-
{ id: "link", label: "Link…" },
|
|
2518
|
-
{ id: "clear", label: "Clear formatting" },
|
|
2519
|
-
{ id: "source", label: "View HTML source…" },
|
|
2520
|
-
],
|
|
2540
|
+
contextMenuItems: COMPOSE_CONTEXT_MENU_ITEMS,
|
|
2521
2541
|
});
|
|
2522
2542
|
popoutWindows.set(key, h);
|
|
2523
2543
|
if (typeof h.pid === "number")
|
|
@@ -2653,15 +2673,7 @@ RFC 5322 with CRLF line endings. Bodies are quoted-printable encoded (readable i
|
|
|
2653
2673
|
// "right mouse isn't showing any formatting options let alone source").
|
|
2654
2674
|
// msger gates these to editable targets, so they DON'T appear on
|
|
2655
2675
|
// right-clicks in the read-only list / message preview.
|
|
2656
|
-
contextMenuItems:
|
|
2657
|
-
{ id: "bold", label: "Bold" },
|
|
2658
|
-
{ id: "italic", label: "Italic" },
|
|
2659
|
-
{ id: "underline", label: "Underline" },
|
|
2660
|
-
{ id: "strike", label: "Strikethrough" },
|
|
2661
|
-
{ id: "link", label: "Link…" },
|
|
2662
|
-
{ id: "clear", label: "Clear formatting" },
|
|
2663
|
-
{ id: "source", label: "View HTML source…" },
|
|
2664
|
-
],
|
|
2676
|
+
contextMenuItems: COMPOSE_CONTEXT_MENU_ITEMS,
|
|
2665
2677
|
});
|
|
2666
2678
|
// Late-bind the popout-action forwarder now that the main window's
|
|
2667
2679
|
// service channel exists.
|