Skip to content

Commit

Permalink
Avoid logged result to change after logging (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
lieser committed Jan 18, 2024
1 parent d8090cc commit 205c8ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/authVerifier.mjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

export const moduleVersion = "2.0.0";

import { addrIsInDomain, addrIsInDomain2, domainIsInDomain, getDomainFromAddr } from "./utils.mjs.js";
import { addrIsInDomain, addrIsInDomain2, copy, domainIsInDomain, getDomainFromAddr } from "./utils.mjs.js";
import ArhParser from "./arhParser.mjs.js";
import DMARC from "./dkim/dmarc.mjs.js";
import ExtensionUtils from "./extensionUtils.mjs.js";
Expand Down Expand Up @@ -346,7 +346,7 @@ async function getARHResult(message, headers, from, listId, account, dmarc) {
dmarc: arhDMARC,
bimiIndicator: getBimiIndicator(headers, arhBIMI) ?? undefined,
};
log.debug("ARH result:", savedAuthResult);
log.debug("ARH result:", copy(savedAuthResult));
return savedAuthResult;
}

Expand Down

0 comments on commit 205c8ff

Please sign in to comment.