From 05eda3bb5a60014614a5eea3111bd5af994d716c Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 13 May 2024 11:55:47 +0100 Subject: [PATCH] Fix regex to no longer match on dmarc= --- src/plugins/lua/arc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5