From: Jason Stephenson Date: Mon, 13 May 2024 10:55:47 +0000 (+0100) Subject: Fix regex to no longer match on dmarc= X-Git-Tag: 3.10.0~68^2^2~1^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05eda3bb5a60014614a5eea3111bd5af994d716c;p=rspamd.git Fix regex to no longer match on dmarc= --- diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index ff19aef4c..1533655d5 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -639,7 +639,7 @@ local function prepare_arc_selector(task, sel) local ar_header = task:get_header('Authentication-Results') if ar_header then - local arc_match = string.match(ar_header, 'arc=(%w+)') + local arc_match = string.match(ar_header, '[; ]arc=(%w+)') if arc_match then if arc_match == 'none' or arc_match == 'pass' then