Skip to content

Commit

Permalink
fix: added subject to bounce report (spam inspection)
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Sep 6, 2023
1 parent cbcef62 commit fcbcde3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/bounce-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function makeDelimitedString(arr) {
'From',
'From Allowlisted',
'To',
'Subject',
'Message-ID',
'MAIL FROM',
'RCPT TO',
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit fcbcde3

Please sign in to comment.