From fcbcde37055f05944fb41f7246a196057b883808 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:45:37 -0500 Subject: [PATCH] fix: added subject to bounce report (spam inspection) --- jobs/bounce-report.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jobs/bounce-report.js b/jobs/bounce-report.js index fef7068324..b7119c0a22 100644 --- a/jobs/bounce-report.js +++ b/jobs/bounce-report.js @@ -62,6 +62,7 @@ function makeDelimitedString(arr) { 'From', 'From Allowlisted', 'To', + 'Subject', 'Message-ID', 'MAIL FROM', 'RCPT TO', @@ -125,6 +126,10 @@ function makeDelimitedString(arr) { : 'false', // To log?.err?.envelope?.to || log?.meta?.session?.headers?.To || '', + // Subject + log?.meta?.session?.headers && log.meta.session.headers.Subject + ? log.meta.session.headers.Subject + : '', // Message-ID log?.meta?.session?.headers && log.meta.session.headers['Message-ID'] ? log.meta.session.headers['Message-ID']