imapflow 2.0.1 → 2.0.2

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
+ ## [2.0.2](https://github.com/postalsys/imapflow/compare/v2.0.1...v2.0.2) (2026-09-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * skip LSUB once a server has rejected ENABLE over the IMAP4rev2 it advertises ([1c4bca2](https://github.com/postalsys/imapflow/commit/1c4bca2349ed05d5cb61a85abb4152630ceb3d73))
9
+
3
10
  ## [2.0.1](https://github.com/postalsys/imapflow/compare/v2.0.0...v2.0.1) (2026-09-10)
4
11
 
5
12
 
@@ -1199,6 +1199,7 @@ class ImapFlow extends node_events_1.EventEmitter {
1199
1199
  // rejected, so it stays an IMAP4rev1 session (RFC 9051 Appendix A)
1200
1200
  // with an advertisement the server does not implement - see skipRev2
1201
1201
  this.skipRev2 = true;
1202
+ this.skipLsub = true;
1202
1203
  }
1203
1204
  // RFC 5161 requires servers to ignore unknown ENABLE arguments, but a
1204
1205
  // broken implementation may reject the whole command over IMAP4rev2 -
@@ -1,3 +1,3 @@
1
1
  export declare const name = "imapflow";
2
- export declare const version = "2.0.1";
2
+ export declare const version = "2.0.2";
3
3
  export declare const homepage = "https://imapflow.com/";
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.homepage = exports.version = exports.name = void 0;
5
5
  exports.name = 'imapflow';
6
- exports.version = '2.0.1';
6
+ exports.version = '2.0.2';
7
7
  exports.homepage = 'https://imapflow.com/';
@@ -1159,6 +1159,7 @@ export class ImapFlow extends EventEmitter {
1159
1159
  // rejected, so it stays an IMAP4rev1 session (RFC 9051 Appendix A)
1160
1160
  // with an advertisement the server does not implement - see skipRev2
1161
1161
  this.skipRev2 = true;
1162
+ this.skipLsub = true;
1162
1163
  }
1163
1164
  // RFC 5161 requires servers to ignore unknown ENABLE arguments, but a
1164
1165
  // broken implementation may reject the whole command over IMAP4rev2 -
@@ -1,3 +1,3 @@
1
1
  export declare const name = "imapflow";
2
- export declare const version = "2.0.1";
2
+ export declare const version = "2.0.2";
3
3
  export declare const homepage = "https://imapflow.com/";
@@ -1,4 +1,4 @@
1
1
  // Generated by scripts/build.js from package.json. Do not edit by hand.
2
2
  export const name = 'imapflow';
3
- export const version = '2.0.1';
3
+ export const version = '2.0.2';
4
4
  export const homepage = 'https://imapflow.com/';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "IMAP Client for Node",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/imap-flow.js",