mailparser 3.9.11 → 3.9.13
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/lib/mail-parser.js +4 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.9.13](https://github.com/nodemailer/mailparser/compare/v3.9.12...v3.9.13) (2026-07-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update dependencies (nodemailer 9.0.3, iconv-lite 0.7.3, libmime 5.4.1) ([999e77b](https://github.com/nodemailer/mailparser/commit/999e77bf86f9e404bc9fb89cb5dc89cc1f84a577))
|
|
9
|
+
|
|
10
|
+
## [3.9.12](https://github.com/nodemailer/mailparser/compare/v3.9.11...v3.9.12) (2026-06-25)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* decode iso-8859-8-i and iso-8859-8-e charsets as iso-8859-8 ([3e4b7fc](https://github.com/nodemailer/mailparser/commit/3e4b7fc00429a85f6b4c41da13deaf5be3087eed))
|
|
16
|
+
|
|
3
17
|
## [3.9.11](https://github.com/nodemailer/mailparser/compare/v3.9.10...v3.9.11) (2026-06-19)
|
|
4
18
|
|
|
5
19
|
|
package/lib/mail-parser.js
CHANGED
|
@@ -200,13 +200,16 @@ class MailParser extends Transform {
|
|
|
200
200
|
// create wrapper
|
|
201
201
|
return {
|
|
202
202
|
decodeStream(charset) {
|
|
203
|
+
// node-iconv resolves its own charset aliases and needs charset-specific
|
|
204
|
+
// fixups (see IconvDecoder, eg. ks_c_5601-1987), so pass the charset through as is
|
|
203
205
|
return new IconvDecoder(Iconv, charset);
|
|
204
206
|
}
|
|
205
207
|
};
|
|
206
208
|
} else {
|
|
207
209
|
return {
|
|
208
210
|
decodeStream(charset) {
|
|
209
|
-
|
|
211
|
+
// resolve charset aliases (eg. iso-8859-8-i -> ISO-8859-8) via libmime's canonical table
|
|
212
|
+
charset = libmime.normalizeCharset((charset || 'ascii').toString());
|
|
210
213
|
if (/^jis|^iso-?2022-?jp|^EUCJP/i.test(charset)) {
|
|
211
214
|
// special case not supported by iconv-lite
|
|
212
215
|
return new JPDecoder(charset);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailparser",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.13",
|
|
4
4
|
"description": "Parse e-mails",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"encoding-japanese": "2.2.0",
|
|
22
22
|
"he": "1.2.0",
|
|
23
23
|
"html-to-text": "10.0.0",
|
|
24
|
-
"iconv-lite": "0.7.
|
|
25
|
-
"libmime": "5.
|
|
26
|
-
"linkify-it": "5.0.
|
|
27
|
-
"@zone-eu/mailsplit": "5.4.
|
|
28
|
-
"nodemailer": "9.0.
|
|
24
|
+
"iconv-lite": "0.7.3",
|
|
25
|
+
"libmime": "5.4.1",
|
|
26
|
+
"linkify-it": "5.0.2",
|
|
27
|
+
"@zone-eu/mailsplit": "5.4.13",
|
|
28
|
+
"nodemailer": "9.0.3",
|
|
29
29
|
"punycode.js": "2.3.1",
|
|
30
30
|
"tlds": "1.261.0"
|
|
31
31
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@eslint/eslintrc": "3.3.5",
|
|
34
34
|
"@eslint/js": "10.0.1",
|
|
35
35
|
"ajv": "8.20.0",
|
|
36
|
-
"eslint": "10.
|
|
36
|
+
"eslint": "10.6.0",
|
|
37
37
|
"eslint-config-nodemailer": "1.2.0",
|
|
38
38
|
"eslint-config-prettier": "10.1.8",
|
|
39
39
|
"grunt": "1.6.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"grunt-contrib-nodeunit": "5.0.0",
|
|
42
42
|
"grunt-eslint": "26.0.0",
|
|
43
43
|
"iconv": "3.0.1",
|
|
44
|
-
"prettier": "3.
|
|
44
|
+
"prettier": "3.9.4",
|
|
45
45
|
"random-message": "1.1.0"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|