@bobfrankston/mailx 1.0.127 → 1.0.128

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx",
3
- "version": "1.0.127",
3
+ "version": "1.0.128",
4
4
  "description": "Local-first email client with IMAP sync and standalone native app",
5
5
  "type": "module",
6
6
  "main": "bin/mailx.js",
@@ -502,7 +502,13 @@ export class ImapManager extends EventEmitter {
502
502
  return; // Prevent concurrent syncs
503
503
  this.syncing = true;
504
504
  try {
505
- await this._syncAll();
505
+ await Promise.race([
506
+ this._syncAll(),
507
+ new Promise((_, reject) => setTimeout(() => reject(new Error("Global sync timeout (10min)")), 600000))
508
+ ]);
509
+ }
510
+ catch (e) {
511
+ console.error(` syncAll error: ${e.message}`);
506
512
  }
507
513
  finally {
508
514
  this.syncing = false;