@bobfrankston/mailx-imap 0.1.46 → 0.1.47

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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -1213,10 +1213,18 @@ export class ImapManager extends EventEmitter {
1213
1213
  // emits them only via state-change FETCH if their flags
1214
1214
  // changed since modSeq, which is unreliable. Pull them
1215
1215
  // explicitly via the existing incremental path.
1216
+ // INSTRUMENTATION (2026-05-15): phase timestamps so the
1217
+ // log pinpoints which operation eats wall-clock during a
1218
+ // slow sync. The 27 s INBOX block had a silent log hole;
1219
+ // these markers fill it.
1220
+ const __t1 = Date.now();
1216
1221
  const fetched = await client.fetchMessagesSinceUid(folder.path, highestUid, { source: false });
1222
+ console.log(` [qr-phase] ${folder.path}: fetchMessagesSinceUid → ${fetched.length} msgs in ${Date.now() - __t1}ms`);
1217
1223
  const newOnes = fetched.filter((m) => m.uid > highestUid);
1218
1224
  if (newOnes.length > 0) {
1225
+ const __t2 = Date.now();
1219
1226
  await this.storeMessages(accountId, folderId, folder, newOnes, highestUid);
1227
+ console.log(` [qr-phase] ${folder.path}: storeMessages(${newOnes.length}) in ${Date.now() - __t2}ms`);
1220
1228
  }
1221
1229
  // Persist new watermark — next resync starts here.
1222
1230
  if (qr.newHighestModSeq !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-imap",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -9,13 +9,13 @@
9
9
  },
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@bobfrankston/mailx-types": "^0.1.13",
12
+ "@bobfrankston/mailx-types": "^0.1.14",
13
13
  "@bobfrankston/mailx-settings": "^0.1.17",
14
- "@bobfrankston/mailx-store": "^0.1.25",
15
- "@bobfrankston/iflow-direct": "^0.1.44",
14
+ "@bobfrankston/mailx-store": "^0.1.26",
15
+ "@bobfrankston/iflow-direct": "^0.1.46",
16
16
  "@bobfrankston/tcp-transport": "^0.1.6",
17
17
  "@bobfrankston/smtp-direct": "^0.1.8",
18
- "@bobfrankston/mailx-sync": "^0.1.16",
18
+ "@bobfrankston/mailx-sync": "^0.1.17",
19
19
  "@bobfrankston/oauthsupport": "^1.0.26"
20
20
  },
21
21
  "repository": {
@@ -37,13 +37,13 @@
37
37
  },
38
38
  ".transformedSnapshot": {
39
39
  "dependencies": {
40
- "@bobfrankston/mailx-types": "^0.1.13",
40
+ "@bobfrankston/mailx-types": "^0.1.14",
41
41
  "@bobfrankston/mailx-settings": "^0.1.17",
42
- "@bobfrankston/mailx-store": "^0.1.25",
43
- "@bobfrankston/iflow-direct": "^0.1.44",
42
+ "@bobfrankston/mailx-store": "^0.1.26",
43
+ "@bobfrankston/iflow-direct": "^0.1.46",
44
44
  "@bobfrankston/tcp-transport": "^0.1.6",
45
45
  "@bobfrankston/smtp-direct": "^0.1.8",
46
- "@bobfrankston/mailx-sync": "^0.1.16",
46
+ "@bobfrankston/mailx-sync": "^0.1.17",
47
47
  "@bobfrankston/oauthsupport": "^1.0.26"
48
48
  }
49
49
  }