imapflow 1.0.133 → 1.0.134

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,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ - 1.0.134 - 2023-07-20
4
+
5
+ - Fixed unicode search if UTF8=ACCEPT extension was enabled
6
+
3
7
  - 1.0.131 - 2023-06-29
4
8
 
5
9
  - Fixed issue with labels that start with tilde
@@ -158,6 +158,7 @@ module.exports = async (connection, maxIdleTime) => {
158
158
  let response;
159
159
  switch (connection.missingIdleCommand) {
160
160
  case 'SELECT':
161
+ // FIXME: somehow a loop occurs after some time of idling with SELECT
161
162
  connection.log.debug({ src: 'c', msg: `Running SELECT to detect changes in folder` });
162
163
  response = await connection.exec(selectCommand.command, selectCommand.arguments);
163
164
  break;
@@ -259,7 +259,8 @@ module.exports.searchCompiler = (connection, query) => {
259
259
 
260
260
  walk(query);
261
261
 
262
- if (hasUnicode) {
262
+ if (hasUnicode && !connection.enabled.has('UTF8=ACCEPT')) {
263
+ // Prepend search query with `CHARSET UTF-8`
263
264
  attributes.unshift({ type: 'ATOM', value: 'UTF-8' });
264
265
  attributes.unshift({ type: 'ATOM', value: 'CHARSET' });
265
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.133",
3
+ "version": "1.0.134",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {
@@ -27,19 +27,19 @@
27
27
  },
28
28
  "homepage": "https://imapflow.com/",
29
29
  "devDependencies": {
30
- "@babel/eslint-parser": "7.22.5",
30
+ "@babel/eslint-parser": "7.22.9",
31
31
  "@babel/eslint-plugin": "7.22.5",
32
32
  "@babel/plugin-syntax-class-properties": "7.12.13",
33
- "@babel/preset-env": "7.22.5",
34
- "@types/node": "20.3.2",
33
+ "@babel/preset-env": "7.22.9",
34
+ "@types/node": "20.4.2",
35
35
  "braintree-jsdoc-template": "3.3.0",
36
- "eslint": "8.43.0",
36
+ "eslint": "8.45.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "8.8.0",
39
39
  "grunt": "1.6.1",
40
40
  "grunt-cli": "1.4.3",
41
41
  "grunt-contrib-nodeunit": "5.0.0",
42
- "grunt-eslint": "24.2.0",
42
+ "grunt-eslint": "24.3.0",
43
43
  "jsdoc": "3.6.11",
44
44
  "st": "3.0.0",
45
45
  "tsd-jsdoc": "2.5.0"
@@ -51,7 +51,7 @@
51
51
  "libmime": "5.2.1",
52
52
  "libqp": "2.0.1",
53
53
  "mailsplit": "5.4.0",
54
- "nodemailer": "6.9.3",
54
+ "nodemailer": "6.9.4",
55
55
  "pino": "8.14.1",
56
56
  "socks": "2.7.1"
57
57
  }