Skip to content

Commit

Permalink
fix: added "other" case and exceeded # connections for bounce processing
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 11, 2024
1 parent 353bf76 commit 094a50a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helpers/get-bounce-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ function getBounceInfo(err) {
response.includes(`?test=${IP_ADDRESS}`) ||
response.includes(`?query=${IP_ADDRESS}`) ||
response.includes(`?ip=${IP_ADDRESS}`) ||
(['rate', 'block', 'spam'].includes(bounceInfo.category) &&
response.includes(IP_ADDRESS))
(['rate', 'block', 'spam', 'other'].includes(bounceInfo.category) &&
response.includes(IP_ADDRESS)) ||
response.includes('exceeded the maximum number of connections')
) {
// test against our IP and put into blocklist category if so
bounceInfo.category = 'blocklist';
Expand Down

0 comments on commit 094a50a

Please sign in to comment.