nodemailer 8.0.1 → 8.0.2

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,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [8.0.2](https://github.com/nodemailer/nodemailer/compare/v8.0.1...v8.0.2) (2026-03-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * merge fragmented display names with unquoted commas in addressparser ([fe27f7f](https://github.com/nodemailer/nodemailer/commit/fe27f7fd57f7587d897274438da2f628ad0ad7d9))
9
+
3
10
  ## [8.0.1](https://github.com/nodemailer/nodemailer/compare/v8.0.0...v8.0.1) (2026-02-07)
4
11
 
5
12
 
@@ -361,6 +361,20 @@ function addressparser(str, options) {
361
361
  }
362
362
  });
363
363
 
364
+ // Merge fragments from unquoted display names containing commas/semicolons.
365
+ // When "Joe Foo, PhD <joe@example.com>" is split on the comma, it produces
366
+ // [{name:"Joe Foo", address:""}, {name:"PhD", address:"joe@example.com"}].
367
+ // Detect this pattern and recombine: a name-only entry followed by an entry
368
+ // that has both a name and an address (from angle-bracket notation).
369
+ for (let i = parsedAddresses.length - 2; i >= 0; i--) {
370
+ let current = parsedAddresses[i];
371
+ let next = parsedAddresses[i + 1];
372
+ if (current.address === '' && current.name && !current.group && next.address && next.name && !next.group) {
373
+ next.name = current.name + ', ' + next.name;
374
+ parsedAddresses.splice(i, 1);
375
+ }
376
+ }
377
+
364
378
  if (options.flatten) {
365
379
  let addresses = [];
366
380
  let walkAddressList = list => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodemailer",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Easy as cake e-mail sending from your Node.js applications",
5
5
  "main": "lib/nodemailer.js",
6
6
  "scripts": {
@@ -26,12 +26,12 @@
26
26
  },
27
27
  "homepage": "https://nodemailer.com/",
28
28
  "devDependencies": {
29
- "@aws-sdk/client-sesv2": "3.985.0",
29
+ "@aws-sdk/client-sesv2": "3.1004.0",
30
30
  "bunyan": "1.8.15",
31
- "c8": "10.1.3",
32
- "eslint": "10.0.0",
31
+ "c8": "11.0.0",
32
+ "eslint": "10.0.3",
33
33
  "eslint-config-prettier": "10.1.8",
34
- "globals": "17.3.0",
34
+ "globals": "17.4.0",
35
35
  "libbase64": "1.3.0",
36
36
  "libmime": "5.3.7",
37
37
  "libqp": "2.1.1",