imapflow 1.0.92 → 1.0.93

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.93 - 2022-05-03
4
+
5
+ - Fixed missing unicode encoding for APPEND, COPY, MOVE
6
+
3
7
  - 1.0.92 - 2022-05-03
4
8
 
5
9
  - Added support for IMAP BINARY extension (rfc3516)
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const { getStatusCode, formatFlag, canUseFlag, formatDateTime, normalizePath, comparePaths, getErrorText } = require('../tools.js');
3
+ const { getStatusCode, formatFlag, canUseFlag, formatDateTime, normalizePath, encodePath, comparePaths, getErrorText } = require('../tools.js');
4
4
 
5
5
  // Appends a message to a mailbox
6
6
  module.exports = async (connection, destination, content, flags, idate) => {
@@ -26,7 +26,7 @@ module.exports = async (connection, destination, content, flags, idate) => {
26
26
  .map(flag => flag && formatFlag(flag.toString()))
27
27
  .filter(flag => flag && canUseFlag(connection.mailbox, flag));
28
28
 
29
- let attributes = [{ type: 'ATOM', value: destination }];
29
+ let attributes = [{ type: 'ATOM', value: encodePath(connection, destination) }];
30
30
 
31
31
  idate = idate ? formatDateTime(idate) : false;
32
32
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const { getStatusCode, normalizePath, expandRange, getErrorText } = require('../tools.js');
3
+ const { getStatusCode, normalizePath, encodePath, expandRange, getErrorText } = require('../tools.js');
4
4
 
5
5
  // Copies messages from current mailbox to some other mailbox
6
6
  module.exports = async (connection, range, destination, options) => {
@@ -14,7 +14,7 @@ module.exports = async (connection, range, destination, options) => {
14
14
 
15
15
  let attributes = [
16
16
  { type: 'SEQUENCE', value: range },
17
- { type: 'ATOM', value: destination }
17
+ { type: 'ATOM', value: encodePath(connection, destination) }
18
18
  ];
19
19
 
20
20
  let response;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const { getStatusCode, normalizePath, expandRange, getErrorText } = require('../tools.js');
3
+ const { getStatusCode, normalizePath, encodePath, expandRange, getErrorText } = require('../tools.js');
4
4
 
5
5
  // Moves messages from current mailbox to some other mailbox
6
6
  module.exports = async (connection, range, destination, options) => {
@@ -14,7 +14,7 @@ module.exports = async (connection, range, destination, options) => {
14
14
 
15
15
  let attributes = [
16
16
  { type: 'SEQUENCE', value: range },
17
- { type: 'ATOM', value: destination }
17
+ { type: 'ATOM', value: encodePath(connection, destination) }
18
18
  ];
19
19
 
20
20
  let map = { path: connection.mailbox.path, destination };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {