imapflow 1.0.196 → 1.0.197

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.197](https://github.com/postalsys/imapflow/compare/v1.0.196...v1.0.197) (2025-09-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **imap ID:** Re-request ID information if only a single key was returned ([87bc016](https://github.com/postalsys/imapflow/commit/87bc016ae677b4428916d4a2047abcdeb95950bb))
9
+
3
10
  ## [1.0.196](https://github.com/postalsys/imapflow/compare/v1.0.195...v1.0.196) (2025-09-14)
4
11
 
5
12
 
package/lib/imap-flow.js CHANGED
@@ -857,7 +857,7 @@ class ImapFlow extends EventEmitter {
857
857
 
858
858
  await this.authenticate();
859
859
 
860
- if (!this.idRequested && this.capabilities.has('ID')) {
860
+ if ((!this.idRequested || Object.keys(this.idRequested).length < 2) && this.capabilities.has('ID')) {
861
861
  // re-request ID after LOGIN
862
862
  this.idRequested = await this.run('ID', this.clientInfo);
863
863
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.196",
3
+ "version": "1.0.197",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "lib/imap-flow.js",
6
6
  "types": "lib/imap-flow.d.ts",