@bobfrankston/mailx 1.0.210 → 1.0.211
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 +8 -17
- package/package.json +3 -3
- package/bin/bin/mailx.js +0 -842
- package/bin/bin/postinstall.js +0 -39
- package/bin/packages/mailx-settings/cloud.js +0 -243
- package/bin/packages/mailx-settings/index.js +0 -642
package/bin/mailx.js
CHANGED
|
@@ -32,21 +32,13 @@ const isDaemon = hasFlag("daemon"); // internal: re-spawned detached process
|
|
|
32
32
|
// Skip for: --verbose (want console), --daemon (already detached),
|
|
33
33
|
// and any command flags (setup, kill, test, etc.)
|
|
34
34
|
if (!verbose && !isDaemon && !process.argv.slice(2).some(a => /^-/.test(a))) {
|
|
35
|
-
const {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
execSync(`wscript "${tmpVbs}"`, { stdio: "ignore" });
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const child = spawn(process.execPath, [...process.argv.slice(1), "--daemon"], {
|
|
46
|
-
detached: true, stdio: "ignore",
|
|
47
|
-
});
|
|
48
|
-
child.unref();
|
|
49
|
-
}
|
|
35
|
+
const { spawn } = await import("node:child_process");
|
|
36
|
+
const child = spawn(process.execPath, [...process.argv.slice(1), "--daemon"], {
|
|
37
|
+
detached: true,
|
|
38
|
+
stdio: "ignore",
|
|
39
|
+
windowsHide: true,
|
|
40
|
+
});
|
|
41
|
+
child.unref();
|
|
50
42
|
process.exit(0);
|
|
51
43
|
}
|
|
52
44
|
const setupMode = hasFlag("setup");
|
|
@@ -503,8 +495,7 @@ async function runTest() {
|
|
|
503
495
|
console.log("\nmailx — connection test\n");
|
|
504
496
|
// Start server in-process to access settings
|
|
505
497
|
console.log("Loading settings...");
|
|
506
|
-
const { loadSettings, getSharedDir } = await import("
|
|
507
|
-
const { initLocalConfig } = await import("../packages/mailx-settings/index.js");
|
|
498
|
+
const { loadSettings, getSharedDir, initLocalConfig } = await import("@bobfrankston/mailx-settings");
|
|
508
499
|
initLocalConfig();
|
|
509
500
|
const settings = loadSettings();
|
|
510
501
|
if (settings.accounts.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.211",
|
|
4
4
|
"description": "Local-first email client with IMAP sync and standalone native app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/mailx.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"client"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "npm run build --workspaces --if-present",
|
|
15
|
+
"build": "npm run build --workspaces --if-present && tsc -p bin",
|
|
16
16
|
"watch": "tsc -w",
|
|
17
17
|
"start": "node --watch packages/mailx-server/index.js",
|
|
18
18
|
"start:prod": "node packages/mailx-server/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@bobfrankston/iflow-node": "^0.1.2",
|
|
25
25
|
"@bobfrankston/miscinfo": "^1.0.8",
|
|
26
26
|
"@bobfrankston/oauthsupport": "^1.0.22",
|
|
27
|
-
"@bobfrankston/msger": "^0.1.
|
|
27
|
+
"@bobfrankston/msger": "^0.1.273",
|
|
28
28
|
"@capacitor/android": "^8.3.0",
|
|
29
29
|
"@capacitor/cli": "^8.3.0",
|
|
30
30
|
"@capacitor/core": "^8.3.0",
|