Skip to content

Instantly share code, notes, and snippets.

@cpragadeesh
Last active March 30, 2017 20:43
Show Gist options
  • Save cpragadeesh/0e90f28fde6ca5e73851cfd87cbd63cd to your computer and use it in GitHub Desktop.
Save cpragadeesh/0e90f28fde6ca5e73851cfd87cbd63cd to your computer and use it in GitHub Desktop.
...
if dmarc_policy == 'quarantine' then
if not pct or pct == 100 or (math.random(100) <= pct) then
task:insert_result(dmarc_symbols['quarantine'], res, lookup_domain .. ' : ' .. reason_str, dmarc_policy)
disposition = "quarantine"
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment