haraka-plugin-spamassassin 1.1.1 → 1.1.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
@@ -4,10 +4,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4
4
 
5
5
  ### Unreleased
6
6
 
7
+ ### [1.1.2] - 2026-06-20
8
+
9
+ - fix(data_post): route the client-gone end path through socket.nextOnce()
10
+ - test: cover parse_spamassassin and handle_spamassassin
11
+
7
12
  ### [1.1.1] - 2026-06-20
8
13
 
9
14
  - fix(spamd_socket): support `[ipv6]:port` via net_utils.endpoint #7
10
- - deps(dev): bump haraka-test-fixtures to ^1.7.0
15
+ - deps(dev): bump haraka-test-fixtures to ~1.7.2
11
16
  - refactor: rename hook_data_post to spamassassin_data_post
12
17
  - split into reusable `parse_spamassassin` + `handle_spamassassin`
13
18
  related to haraka/Haraka#3604
@@ -49,3 +54,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
49
54
  [1.0.4]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.0.4
50
55
  [1.1.0]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.1.0
51
56
  [1.1.1]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.1.1
57
+ [1.1.2]: https://github.com/haraka/haraka-plugin-spamassassin/releases/tag/v1.1.2
package/index.js CHANGED
@@ -78,7 +78,7 @@ exports.spamassassin_data_post = function (next, connection) {
78
78
  })
79
79
 
80
80
  socket.once('end', () => {
81
- if (!connection.transaction) return next() // client gone
81
+ if (!connection.transaction) return socket.nextOnce() // client gone
82
82
  const spamd_response = this.parse_spamassassin(lines.join('\n'))
83
83
  socket.nextOnce(
84
84
  ...this.handle_spamassassin(connection, spamd_response, start),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haraka-plugin-spamassassin",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Haraka plugin that scans messages with SpamAssassin",
5
5
  "main": "index.js",
6
6
  "files": [