mailparser 3.9.10 → 3.9.12

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "3.9.10"
2
+ ".": "3.9.12"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.9.12](https://github.com/nodemailer/mailparser/compare/v3.9.11...v3.9.12) (2026-06-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * decode iso-8859-8-i and iso-8859-8-e charsets as iso-8859-8 ([3e4b7fc](https://github.com/nodemailer/mailparser/commit/3e4b7fc00429a85f6b4c41da13deaf5be3087eed))
9
+
10
+ ## [3.9.11](https://github.com/nodemailer/mailparser/compare/v3.9.10...v3.9.11) (2026-06-19)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * bump nodemailer to 9.0.1 ([020f140](https://github.com/nodemailer/mailparser/commit/020f140e67e98ac65c1d56d48c838986f7decc8a))
16
+
3
17
  ## [3.9.10](https://github.com/nodemailer/mailparser/compare/v3.9.9...v3.9.10) (2026-06-15)
4
18
 
5
19
 
package/SECURITY.md CHANGED
@@ -36,8 +36,9 @@ Report privately through one of the following channels:
36
36
  1. **GitHub Security Advisories (preferred).** Open a private report at
37
37
  <https://github.com/nodemailer/mailparser/security/advisories/new>. This keeps
38
38
  the discussion private until a fix is published and lets us credit you.
39
- 2. **Email.** Send details to **andris@postalsys.com**. Encrypt sensitive
40
- details if possible.
39
+ 2. **Email.** Send details to **andris@postalsys.com** (the contact listed in
40
+ [`SECURITY.txt`](SECURITY.txt)). Encrypt sensitive details if possible - our
41
+ PGP key fingerprint is `5D952A46E1D8C931F6364E01DC6C83F4D584D364`.
41
42
 
42
43
  When reporting, please include as much of the following as you can:
43
44
 
package/SECURITY.txt ADDED
@@ -0,0 +1,27 @@
1
+ -----BEGIN PGP SIGNED MESSAGE-----
2
+ Hash: SHA256
3
+
4
+ Contact: https://github.com/nodemailer/mailparser/security/advisories/new
5
+ Contact: mailto:andris@postalsys.com
6
+ Expires: 2027-06-01T00:00:00.000Z
7
+ Encryption: https://keys.openpgp.org/vks/v1/by-fingerprint/5D952A46E1D8C931F6364E01DC6C83F4D584D364
8
+ Preferred-Languages: en, et
9
+ Canonical: https://github.com/nodemailer/mailparser/blob/master/SECURITY.txt
10
+ Policy: https://github.com/nodemailer/mailparser/blob/master/SECURITY.md
11
+ -----BEGIN PGP SIGNATURE-----
12
+
13
+ iQJPBAEBCAA5FiEEXZUqRuHYyTH2Nk4B3GyD9NWE02QFAmowM98bFIAAAAAABAAO
14
+ bWFudTIsMi41KzEuMTIsMCwzAAoJENxsg/TVhNNkyvAP/3U2a9yOHw7nImBzCcFU
15
+ /9vhdicyxkcnFxmwOi8A2ZcCBoysOMgRAgp5suHMLd8KNxcT/NPOnVGzWfZCUkoI
16
+ CbQeGvmuCAXDKXXABPkEz11Yw1CiZ8oqzcJ4uRJ1on/MSZEQoVniGNYTLnvQEoH/
17
+ sqLn0i7IqbIfC2tBHHYX0l8aycYvIiLHWrom2g8ux9q3ZQo8BPe5IlUCXvEcJgMH
18
+ mdz0lb3pM0f6GrTH5d+LSbEk4ShcnkU/KVM4P2wnvdXbHtFfbgIQruQiSksjY5uw
19
+ hgbNX5Rpsc/peB1LUwuvHLwfn9+W1ZA5dOnBqV+BfyKQ5muDrR/cAK8UrY9VVlaD
20
+ HQK2biOfoC1pcaO3YH92ZsKFW+MeTiAOFL668r3uyqyAHXp17vP3AXWrJdcASXtE
21
+ vVpueJPsi7nUufHWddEP+HIClOTrgAPBnma0fSUgR9YZCJvXB0Q/3ZGaDigBEgN9
22
+ CGtaBP9OdruQSWx1CsVNq7Bw/VONXvN3ErUAS1LRhcuwry9Dac5ddOK2jwxZu/jx
23
+ 1t4g/WLyIYtRFDYsEaplGaTgIgDBdf53vOkKz5mnETf907UFr7aTMieI7r0lgjVT
24
+ i7DjruA7qC1TKB8p0n0QK0eUjaI45kOKj76Ctu9CzG4nza98eWX+H2b4F87b86K5
25
+ gCSGLFro2A55I1SaqTDe1cdP
26
+ =4L6c
27
+ -----END PGP SIGNATURE-----
@@ -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
- charset = (charset || 'ascii').toString().trim().toLowerCase();
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.10",
3
+ "version": "3.9.12",
4
4
  "description": "Parse e-mails",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,10 +22,10 @@
22
22
  "he": "1.2.0",
23
23
  "html-to-text": "10.0.0",
24
24
  "iconv-lite": "0.7.2",
25
- "libmime": "5.3.8",
25
+ "libmime": "5.4.0",
26
26
  "linkify-it": "5.0.1",
27
- "@zone-eu/mailsplit": "5.4.12",
28
- "nodemailer": "9.0.0",
27
+ "@zone-eu/mailsplit": "5.4.13",
28
+ "nodemailer": "9.0.1",
29
29
  "punycode.js": "2.3.1",
30
30
  "tlds": "1.261.0"
31
31
  },