commit 05eda3b: Fix regex to no longer match on dmarc=

Jason Stephenson jstephenson at mimecast.com
Mon Jul 29 17:56:43 UTC 2024


Author: Jason Stephenson
Date: 2024-05-13 11:55:47 +0100
URL: https://github.com/rspamd/rspamd/commit/05eda3bb5a60014614a5eea3111bd5af994d716c

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


More information about the Commits mailing list