User Tools

Site Tools


reference:virus_scan_filter_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
reference:virus_scan_filter_script [2016/02/12 14:49] – created paulreference:virus_scan_filter_script [2018/11/14 10:45] (current) – external edit 127.0.0.1
Line 3: Line 3:
 (Added in V6.17) (Added in V6.17)
  
-This script has a single function **FilterResult**+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. 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.
Line 19: Line 19:
   * filter_variables is the list of [[http://www.pscs.co.uk/manual/index.html?attachment_processing_advanced_rules.html|attachment filter variables]] at this point in time. Standard variables are //authsender//, //senderaddr//, //messagetype// and //subject//. These can be used for skipping detected viruses from certain senders or with certain subjects.   * filter_variables is the list of [[http://www.pscs.co.uk/manual/index.html?attachment_processing_advanced_rules.html|attachment filter variables]] at this point in time. Standard variables are //authsender//, //senderaddr//, //messagetype// and //subject//. These can be used for skipping detected viruses from certain senders or with certain subjects.
  
 +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
reference/virus_scan_filter_script.1455288550.txt.gz · Last modified: 2018/11/14 10:44 (external edit)