Skip to content

Commit

Permalink
fix(logs): do not log entire received chain
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 12, 2024
1 parent 3633ed2 commit 102b4b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ async function hookDataPost(stream, plugin, connection) {
const receivedChain = dkimResult?.headers?.parsed.filter(r => r.key === 'received').map(row => parseReceived(row.line));
const receivedChainComment = []
.concat(receivedChain || [])
.slice(1)
.reverse()
.slice(0, 5)
.map(entry => entry?.by?.comment)
.filter(value => value)
.join(', ');
Expand Down

0 comments on commit 102b4b0

Please sign in to comment.