haraka-plugin-rspamd
Advanced tools
Comparing version 1.1.3 to 1.1.4
## 1.1.3 - 2018-12-NN | ||
## 1.1.4 - 2019-01-28 | ||
- fixed "TypeError: value.replace is not a function" | ||
## 1.1.3 - 2018-12-19 | ||
- add check.relay option | ||
@@ -5,0 +9,0 @@ |
@@ -183,3 +183,10 @@ 'use strict'; | ||
Object.keys(data.milter.add_headers).forEach((key) => { | ||
connection.transaction.add_header(key, data.milter.add_headers[key]); | ||
const header_value = data.milter.add_headers[key]; | ||
if (!header_value) return; | ||
if (typeof header_value === 'object') { | ||
connection.transaction.add_header(key, header_value.value); | ||
} else { | ||
connection.transaction.add_header(key, header_value); | ||
} | ||
}) | ||
@@ -186,0 +193,0 @@ } |
{ | ||
"name": "haraka-plugin-rspamd", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Haraka plugin for rspamd", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31271
639