Skip to content

Commit

Permalink
fix: fixed bug causing false positives to go out
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 14, 2024
1 parent 1f7418f commit a7a8ac3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions helpers/on-data-mx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,6 @@ async function onDataMX(raw, session, headers, body) {
// if at least one was accepted and potential phishing
// was detected from `helpers/is-arbitrary.js` then
// send a one-time email to each of the accepted recipients
session.isPotentialPhishing = true;
if (accepted.length > 0 && session.isPotentialPhishing) {
pMapSeries(accepted, async (to) => {
try {
Expand All @@ -1441,9 +1440,9 @@ async function onDataMX(raw, session, headers, body) {
locals: {
from: session.originalFromAddress,
domain: session.originalFromAddressRootDomain,
subject: headers.getFirst('subject'),
date: headers.getFirst('date'),
messageId: headers.getFirst('message-id'),
subject: getHeaders(headers, 'subject'),
date: getHeaders(headers, 'date'),
messageId: getHeaders(headers, 'message-id'),
remoteAddress: session.remoteAddress
}
});
Expand Down

0 comments on commit a7a8ac3

Please sign in to comment.