Comparing version 1.0.20 to 1.0.21
@@ -46,4 +46,4 @@ 'use strict'; | ||
if (opts.trustReceived) { | ||
let rcvd = receivedChain?.[0]; | ||
if (rcvd?.from) { | ||
let rcvd = receivedChain?.find(row => row.from?.value); | ||
if (rcvd) { | ||
let helo = rcvd.from.value; | ||
@@ -50,0 +50,0 @@ let ip; |
{ | ||
"name": "mailauth", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "Email authentication library for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/mailauth.js", |
@@ -426,2 +426,4 @@ ![](https://github.com/andris9/mailauth/raw/master/assets/mailauth.png) | ||
See full example for DKIM checks [here](https://gist.github.com/andris9/8d4ab527282041f6725a640d80da4872). | ||
#### DNS cache file | ||
@@ -428,0 +430,0 @@ |
236304
530