haraka-plugin-karma 2.0.4 → 2.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/Changes.md +8 -0
- package/index.js +3 -3
- package/package.json +3 -3
package/Changes.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
#### N.N.N - YYYY-MM-DD
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
### [2.1.0] - 2022-11-29
|
|
6
|
+
|
|
7
|
+
- fix: in disconnect, call redis_unsub after skip check
|
|
8
|
+
- dep(redis): 4 -> 4.1
|
|
9
|
+
- dep(pi-redis): 2 -> 2.0.5
|
|
10
|
+
|
|
11
|
+
|
|
5
12
|
#### 2.0.4 - 2022-05-28
|
|
6
13
|
|
|
7
14
|
- use .release as submodule
|
|
@@ -97,3 +104,4 @@
|
|
|
97
104
|
#### 1.0.2 - 2017-01-24
|
|
98
105
|
|
|
99
106
|
- use redis.merge_redis_ini()
|
|
107
|
+
[2.1.0]: https://github.com/haraka/haraka-plugin-karma/releases/tag/2.1.0
|
package/index.js
CHANGED
|
@@ -684,10 +684,10 @@ exports.increment = function (connection, key, val) {
|
|
|
684
684
|
exports.hook_disconnect = function (next, connection) {
|
|
685
685
|
const plugin = this
|
|
686
686
|
|
|
687
|
-
plugin.redis_unsubscribe(connection)
|
|
688
|
-
|
|
689
687
|
if (plugin.should_we_skip(connection)) return next()
|
|
690
688
|
|
|
689
|
+
plugin.redis_unsubscribe(connection)
|
|
690
|
+
|
|
691
691
|
const k = connection.results.get('karma')
|
|
692
692
|
if (!k || k.score === undefined) {
|
|
693
693
|
connection.results.add(plugin, {err: 'karma results missing'})
|
|
@@ -708,7 +708,7 @@ exports.hook_disconnect = function (next, connection) {
|
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
connection.results.add(plugin, {emit: true })
|
|
711
|
-
|
|
711
|
+
next()
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
exports.get_award_loc_from_note = function (connection, award) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "haraka-plugin-karma",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A heuristics scoring and reputation engine for SMTP connections",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"address-rfc2821": "*",
|
|
27
27
|
"haraka-constants": ">=1.0.2",
|
|
28
28
|
"haraka-utils": "*",
|
|
29
|
-
"haraka-plugin-redis": "2",
|
|
30
|
-
"redis": "4"
|
|
29
|
+
"haraka-plugin-redis": "2.0.5",
|
|
30
|
+
"redis": "4.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"eslint": "8",
|