(Added in V6.17)
The VIRUSSCAN.LUA script has a single function FilterResult
This function is called for every virus that a VPOP3-integrated (eg VPOP3 AV or Sophos SAV Interface) detects. The function has the opportunity to 'filter' the virus detection so that VPOP3 will act as if the virus was not detected.
Obviously this has some security implications so should be used with care! A valid use may be if there are false positives that you need to ignore.
VPOP3 calls:
FilterResult(virus_name, attachment_name, archive_name, filter_variables)
The function returns a boolean value to indicate whether the virus detection should be skipped (true) or used (false).
Example:
function FilterResult(virus, attach, archive, vars)
if (vars["senderaddr"] == "test@pscs.co.uk" and virus == "Eicar-Test-Signature") then
return true;
end
return false
end