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 +4 -0
- package/lib/commands/append.js +2 -2
- package/lib/commands/copy.js +2 -2
- package/lib/commands/move.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/commands/append.js
CHANGED
|
@@ -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
|
|
package/lib/commands/copy.js
CHANGED
|
@@ -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;
|
package/lib/commands/move.js
CHANGED
|
@@ -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 };
|