@bobfrankston/mailx-imap 0.1.71 → 0.1.72

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 +11 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3100,6 +3100,17 @@ export class ImapManager extends EventEmitter {
3100
3100
  }
3101
3101
  catch (e) {
3102
3102
  console.error(` [prefetch] ${accountId}/${uid}: store write failed: ${e.message}`);
3103
+ // Back off this UID. A corrupt body (the
3104
+ // putMessage guard rejecting an IMAP command
3105
+ // leaked into the FETCH response — iflow
3106
+ // protocol desync) was NOT marked, so the
3107
+ // same poisoned UID got re-fetched every
3108
+ // prefetch cycle forever, spamming the log
3109
+ // and wasting fetch turns (Bob 2026-05-28
3110
+ // "why is prefetching still broken" — UID
3111
+ // 59686 failing on a loop). markPrefetchEmpty
3112
+ // applies the 5m→30m→2h→12h backoff.
3113
+ this.markPrefetchEmpty(accountId, folderId, uid);
3103
3114
  }
3104
3115
  })());
3105
3116
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-imap",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",