Closed analogic closed 4 months ago
Indeed. Two ways to solve that:
- results.add(this, {err: `${domain}:${err.message}`});
+ results.add(plugin, {err: `${domain}:${err.message}`});
- function mxErr (err) {
+ const mxErr = (err) => {
I came across this bug in a random test. https://github.com/haraka/Haraka/blob/f4cc2a61dc3b55b919451a010d5b2fee063e9728/plugins/mail_from.is_resolvable.js#L73 It seems that this is used in the wrong context when catching an exception.