Skip to main content

require('msys.core');
require('msys.extended.message');
require('msys.av');

local mod = {};
function mod:validate_data_spool_each_rcpt(msg, ac, vctx)
  -- for MM7 Messages only
  if msg.recv_method == msys.core.P_MM7 then
    local rc, result, eng = msys.av.scan('eicar', msg, vctx);
    print("av:", rc, result, eng);
  end
  return msys.core.VALIDATE_CONT;
end
msys.registerModule('validation', mod);
Was this page helpful?