imapflow 1.0.150 → 1.0.152
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 +14 -0
- package/lib/imap-flow.js +2 -2
- package/lib/tools.js +13 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.152](https://github.com/postalsys/imapflow/compare/v1.0.151...v1.0.152) (2024-02-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **address:** do not use '@' instead of empyt address if a field does not contain a value ([aeabbde](https://github.com/postalsys/imapflow/commit/aeabbded3bf3c6ba7266f79d4bc001980644da0d))
|
|
9
|
+
|
|
10
|
+
## [1.0.151](https://github.com/postalsys/imapflow/compare/v1.0.150...v1.0.151) (2024-02-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **filename:** Fixed filename decoding for the download method ([68a8159](https://github.com/postalsys/imapflow/commit/68a8159a0988245bf3f7c9b002823b01d9d24876))
|
|
16
|
+
|
|
3
17
|
## [1.0.150](https://github.com/postalsys/imapflow/compare/v1.0.149...v1.0.150) (2024-02-01)
|
|
4
18
|
|
|
5
19
|
|
package/lib/imap-flow.js
CHANGED
|
@@ -2586,7 +2586,7 @@ class ImapFlow extends EventEmitter {
|
|
|
2586
2586
|
let filename = disposition.params.filename || contentType.params.name || false;
|
|
2587
2587
|
if (filename) {
|
|
2588
2588
|
try {
|
|
2589
|
-
filename =
|
|
2589
|
+
filename = libmime.decodeWords(filename);
|
|
2590
2590
|
} catch (err) {
|
|
2591
2591
|
// failed to parse filename, keep as is (most probably an unknown charset is used)
|
|
2592
2592
|
}
|
|
@@ -2780,7 +2780,7 @@ class ImapFlow extends EventEmitter {
|
|
|
2780
2780
|
let filename = disposition.params.filename || contentType.params.name || false;
|
|
2781
2781
|
if (filename) {
|
|
2782
2782
|
try {
|
|
2783
|
-
filename =
|
|
2783
|
+
filename = libmime.decodeWords(filename);
|
|
2784
2784
|
} catch (err) {
|
|
2785
2785
|
// failed to parse filename, keep as is (most probably an unknown charset is used)
|
|
2786
2786
|
}
|
package/lib/tools.js
CHANGED
|
@@ -423,10 +423,19 @@ module.exports = {
|
|
|
423
423
|
};
|
|
424
424
|
|
|
425
425
|
let processAddresses = function (list) {
|
|
426
|
-
return []
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
426
|
+
return []
|
|
427
|
+
.concat(list || [])
|
|
428
|
+
.map(addr => {
|
|
429
|
+
let address = (getStrValue(addr[2]) || '') + '@' + (getStrValue(addr[3]) || '');
|
|
430
|
+
if (address === '@') {
|
|
431
|
+
address = '';
|
|
432
|
+
}
|
|
433
|
+
return {
|
|
434
|
+
name: module.exports.processName(libmime.decodeWords(getStrValue(addr[0]))),
|
|
435
|
+
address
|
|
436
|
+
};
|
|
437
|
+
})
|
|
438
|
+
.filter(addr => addr.name || addr.address);
|
|
430
439
|
},
|
|
431
440
|
envelope = {};
|
|
432
441
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imapflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.152",
|
|
4
4
|
"description": "IMAP Client for Node",
|
|
5
5
|
"main": "./lib/imap-flow.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/eslint-plugin": "7.23.5",
|
|
33
33
|
"@babel/plugin-syntax-class-properties": "7.12.13",
|
|
34
34
|
"@babel/preset-env": "7.23.9",
|
|
35
|
-
"@types/node": "20.11.
|
|
35
|
+
"@types/node": "20.11.17",
|
|
36
36
|
"eslint": "8.56.0",
|
|
37
37
|
"eslint-config-nodemailer": "1.2.0",
|
|
38
38
|
"eslint-config-prettier": "9.1.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"libqp": "2.0.1",
|
|
54
54
|
"mailsplit": "5.4.0",
|
|
55
55
|
"nodemailer": "6.9.9",
|
|
56
|
-
"pino": "8.
|
|
57
|
-
"socks": "2.7.
|
|
56
|
+
"pino": "8.18.0",
|
|
57
|
+
"socks": "2.7.3"
|
|
58
58
|
}
|
|
59
59
|
}
|