commit a41c12a: [Minor] Constrain Content-Description regexp

twesterhever 40121680+twesterhever at users.noreply.github.com
Mon Jul 29 17:56:33 UTC 2024


Author: twesterhever
Date: 2024-05-01 08:10:34 +0000
URL: https://github.com/rspamd/rspamd/commit/a41c12a4e325769f94fdf8d8f40837ea0d29a374 (refs/pull/4950/head)

[Minor] Constrain Content-Description regexp

---
 rules/regexp/headers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index dc339b0ad..d07d697de 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -911,7 +911,7 @@ reconf['HAS_CD_HEADER'] = {
 }
 
 reconf['CD_MM_BODY'] = {
-  re = 'Content-Description=/Mail message body/Hi',
+  re = 'Content-Description=/^Mail message body$/Hi',
   description = 'Content-Description header reads "Mail message body", commonly seen in spam',
   score = 2.0,
   group = 'headers'


More information about the Commits mailing list