Skip to content

Commit

Permalink
Add missing X-Haraka-Virus header (#3207)
Browse files Browse the repository at this point in the history
Added  X-Haraka-Virus header so scoring can happen.

Co-authored-by: Matt Simerson <[email protected]>
  • Loading branch information
lnedry and msimerson authored Aug 4, 2023
1 parent 15484a3 commit 37bc1f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/clamd.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ exports.hook_data_post = function (next, connection) {
if (virus && plugin.rejectRE && // enabled
plugin.allRE.test(virus) && // has a reject option
!plugin.rejectRE.test(virus)) { // reject=false set
txn.add_header('X-Haraka-Virus', virus);
return next();
}
if (!plugin.cfg.reject.virus) { return next(); }
Expand Down

0 comments on commit 37bc1f7

Please sign in to comment.