@bobfrankston/mailx 1.0.417 → 1.0.419
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 +10 -0
- package/client/components/alarms.js +13 -0
- package/package.json +5 -5
- package/temp.cmd +11 -0
package/bin/mailx.js
CHANGED
|
@@ -1039,6 +1039,14 @@ RFC 5322 with CRLF line endings. Bodies are quoted-printable encoded (readable i
|
|
|
1039
1039
|
const __iconPng = path.join(clientDir, "icon.png");
|
|
1040
1040
|
const __iconPathRuntime = fs.existsSync(__iconPng) ? __iconPng : __iconIco;
|
|
1041
1041
|
const __iconPathPin = fs.existsSync(__iconIco) ? __iconIco : undefined;
|
|
1042
|
+
// Pinned-shortcut launch command. Windows captures the running exe at
|
|
1043
|
+
// pin time by default, but the running exe is `mailx.exe` — actually
|
|
1044
|
+
// msgernative.exe expecting JSON options on stdin. Click that bare and
|
|
1045
|
+
// it dies on `serde_json::from_str("")`. Override with an explicit
|
|
1046
|
+
// node + script invocation so the pin re-enters through bin/mailx.js
|
|
1047
|
+
// the same way the `mailx` CLI does.
|
|
1048
|
+
const __mailxJs = path.join(import.meta.dirname, "mailx.js");
|
|
1049
|
+
const __relaunchCommand = `"${process.execPath}" "${__mailxJs}"`;
|
|
1042
1050
|
const handle = showService({
|
|
1043
1051
|
title: `mailx v${rootPkgVersion}`,
|
|
1044
1052
|
url: "index.html",
|
|
@@ -1046,6 +1054,8 @@ RFC 5322 with CRLF line endings. Bodies are quoted-printable encoded (readable i
|
|
|
1046
1054
|
initScript: mailxapiScript,
|
|
1047
1055
|
icon: __iconPathRuntime,
|
|
1048
1056
|
relaunchIcon: __iconPathPin,
|
|
1057
|
+
relaunchCommand: __relaunchCommand,
|
|
1058
|
+
relaunchDisplayName: "mailx",
|
|
1049
1059
|
aumid: "com.frankston.mailx",
|
|
1050
1060
|
size: savedGeometry
|
|
1051
1061
|
? { width: savedGeometry.width, height: savedGeometry.height }
|
|
@@ -176,6 +176,15 @@ function showPopup(items) {
|
|
|
176
176
|
overlay.appendChild(panel);
|
|
177
177
|
document.body.appendChild(overlay);
|
|
178
178
|
currentPopup = overlay;
|
|
179
|
+
// Pin the mailx window above other apps while a reminder is showing —
|
|
180
|
+
// matches Thunderbird's reminder dialog behavior. Cleared on close so
|
|
181
|
+
// the window doesn't stay always-on-top once the user has acknowledged.
|
|
182
|
+
// No-op in browser fallback (msgapi only present in WebView2).
|
|
183
|
+
const msgapi = window.msgapi;
|
|
184
|
+
try {
|
|
185
|
+
msgapi?.setAlwaysOnTop?.(true);
|
|
186
|
+
}
|
|
187
|
+
catch { /* */ }
|
|
179
188
|
const snoozeMinutes = () => {
|
|
180
189
|
const sel = panel.querySelector(".alarm-snooze-sel");
|
|
181
190
|
if (sel.value === "custom") {
|
|
@@ -205,6 +214,10 @@ function showPopup(items) {
|
|
|
205
214
|
const close = () => {
|
|
206
215
|
overlay.remove();
|
|
207
216
|
currentPopup = null;
|
|
217
|
+
try {
|
|
218
|
+
msgapi?.setAlwaysOnTop?.(false);
|
|
219
|
+
}
|
|
220
|
+
catch { /* */ }
|
|
208
221
|
};
|
|
209
222
|
panel.querySelector(".alarm-close")?.addEventListener("click", close);
|
|
210
223
|
panel.querySelector(".alarm-btn-snooze")?.addEventListener("click", () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.419",
|
|
4
4
|
"description": "Local-first email client with IMAP sync and standalone native app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/mailx.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@bobfrankston/iflow-node": "^0.1.8",
|
|
36
36
|
"@bobfrankston/miscinfo": "^1.0.10",
|
|
37
37
|
"@bobfrankston/oauthsupport": "^1.0.25",
|
|
38
|
-
"@bobfrankston/msger": "^0.1.
|
|
39
|
-
"@bobfrankston/mailx-host": "^0.1.
|
|
38
|
+
"@bobfrankston/msger": "^0.1.357",
|
|
39
|
+
"@bobfrankston/mailx-host": "^0.1.7",
|
|
40
40
|
"@capacitor/android": "^8.3.0",
|
|
41
41
|
"@capacitor/cli": "^8.3.0",
|
|
42
42
|
"@capacitor/core": "^8.3.0",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"@bobfrankston/iflow-node": "^0.1.8",
|
|
100
100
|
"@bobfrankston/miscinfo": "^1.0.10",
|
|
101
101
|
"@bobfrankston/oauthsupport": "^1.0.25",
|
|
102
|
-
"@bobfrankston/msger": "^0.1.
|
|
103
|
-
"@bobfrankston/mailx-host": "^0.1.
|
|
102
|
+
"@bobfrankston/msger": "^0.1.357",
|
|
103
|
+
"@bobfrankston/mailx-host": "^0.1.7",
|
|
104
104
|
"@capacitor/android": "^8.3.0",
|
|
105
105
|
"@capacitor/cli": "^8.3.0",
|
|
106
106
|
"@capacitor/core": "^8.3.0",
|
package/temp.cmd
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
echo === Killing any running mailx ===
|
|
3
|
+
call mailx -kill
|
|
4
|
+
timeout /t 2 /nobreak >nul
|
|
5
|
+
echo.
|
|
6
|
+
echo === Launching mailx --verbose ===
|
|
7
|
+
echo === Wait for window, then close it (X). ===
|
|
8
|
+
mailx --verbose > mailx-out.log 2>&1
|
|
9
|
+
echo.
|
|
10
|
+
echo === [service] / relaunch / set_relaunch lines ===
|
|
11
|
+
powershell -NoProfile -Command "Select-String -Path mailx-out.log -Pattern 'service\]|relaunch|aumid|set_relaunch'"
|