@bobfrankston/mailx 1.0.153 → 1.0.154
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 +2 -1
- package/client/lib/mailxapi.js +1 -1
- package/package.json +2 -2
package/bin/mailx.js
CHANGED
|
@@ -686,7 +686,7 @@ async function main() {
|
|
|
686
686
|
});
|
|
687
687
|
// Wait for WebView2 initialization before starting IMAP (stdin writes during init crash wry)
|
|
688
688
|
await new Promise(r => setTimeout(r, 2000));
|
|
689
|
-
//
|
|
689
|
+
// Register all accounts (OAuth may open browser for Gmail — event loop stays free for IPC)
|
|
690
690
|
for (const account of settings.accounts) {
|
|
691
691
|
if (!account.enabled)
|
|
692
692
|
continue;
|
|
@@ -698,6 +698,7 @@ async function main() {
|
|
|
698
698
|
console.error(` Failed: ${account.id}: ${e.message}`);
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
+
// Start sync in background — don't block
|
|
701
702
|
if (settings.accounts.some(a => a.enabled)) {
|
|
702
703
|
imapManager.syncAll().catch(e => console.error(` Sync error: ${e.message}`));
|
|
703
704
|
}
|
package/client/lib/mailxapi.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
var timer = setTimeout(function() {
|
|
20
20
|
delete _callbacks[id];
|
|
21
21
|
reject(new Error("mailxapi timeout: " + action));
|
|
22
|
-
},
|
|
22
|
+
}, 120000);
|
|
23
23
|
_callbacks[id] = { resolve: resolve, reject: reject, timer: timer };
|
|
24
24
|
var msg = Object.assign({ _action: action, _cbid: id }, params || {});
|
|
25
25
|
if (window.ipc && window.ipc.postMessage) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.154",
|
|
4
4
|
"description": "Local-first email client with IMAP sync and standalone native app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/mailx.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@bobfrankston/iflow": "^1.0.53",
|
|
24
24
|
"@bobfrankston/miscinfo": "^1.0.7",
|
|
25
25
|
"@bobfrankston/oauthsupport": "^1.0.20",
|
|
26
|
-
"@bobfrankston/msger": "^0.1.
|
|
26
|
+
"@bobfrankston/msger": "^0.1.204",
|
|
27
27
|
"@capacitor/android": "^8.3.0",
|
|
28
28
|
"@capacitor/cli": "^8.3.0",
|
|
29
29
|
"@capacitor/core": "^8.3.0",
|