haraka-plugin-spamassassin 1.0.4 → 1.1.0

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
@@ -4,6 +4,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4
4
 
5
5
  ### Unreleased
6
6
 
7
+ ### [1.1.0] - 2026-05-17
8
+
9
+ - changed: dep address-rfc2821 -> @haraka/email-address
10
+ - changed: bumped all dep versions to latest
11
+
7
12
  ### [1.0.4] - 2026-05-10
8
13
 
9
14
  - fix: cleanup message pipe if spamd errors
@@ -34,3 +39,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
34
39
  [1.0.0]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/1.0.0
35
40
  [1.0.3]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.0.3
36
41
  [1.0.4]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.0.4
42
+ [1.1.0]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.1.0
package/index.js CHANGED
@@ -245,7 +245,7 @@ exports.get_spamd_username = function (conn) {
245
245
  // Enable per-user SA prefs
246
246
  if (user === 'first-recipient') {
247
247
  // special cases
248
- return conn.transaction.rcpt_to[0].address()
248
+ return conn.transaction.rcpt_to[0].address
249
249
  }
250
250
  if (user === 'all-recipients') {
251
251
  throw 'Unimplemented'
@@ -263,7 +263,7 @@ exports.get_spamd_headers = function (conn, username) {
263
263
  'HEADERS SPAMC/1.4',
264
264
  `User: ${username}`,
265
265
  '',
266
- `X-Envelope-From: ${conn.transaction.mail_from.address()}`,
266
+ `X-Envelope-From: ${conn.transaction.mail_from.address}`,
267
267
  `X-Haraka-UUID: ${conn.transaction.uuid}`,
268
268
  ]
269
269
  if (conn.relaying) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haraka-plugin-spamassassin",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "Haraka plugin that scans messages with SpamAssassin",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -16,7 +16,8 @@
16
16
  "test": "node --test",
17
17
  "versions": "npx npm-dep-mgr check",
18
18
  "versions:fix": "npx npm-dep-mgr update",
19
- "test:coverage": "npx c8 --reporter=text --reporter=text-summary npm test"
19
+ "test:coverage": "node --test --experimental-test-coverage --test-coverage-exclude=package.json --test-coverage-exclude=test/*.js",
20
+ "test:coverage:lcov": "mkdir -p coverage && node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info test/*.js"
20
21
  },
21
22
  "repository": {
22
23
  "type": "git",
@@ -34,13 +35,13 @@
34
35
  },
35
36
  "homepage": "https://github.com/haraka/haraka-plugin-spamassassin#readme",
36
37
  "dependencies": {
37
- "haraka-net-utils": "^1.8.1",
38
+ "haraka-net-utils": "^1.8.2",
38
39
  "haraka-utils": "^1.1.4"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@haraka/eslint-config": "^2.0.4",
42
- "address-rfc2821": "^2.1.5",
43
- "haraka-test-fixtures": "^1.4.3"
43
+ "@haraka/email-address": "^3.1.4",
44
+ "haraka-test-fixtures": "^1.6.0"
44
45
  },
45
46
  "prettier": {
46
47
  "singleQuote": true,