commit 3e1c8da: [Minor] Add rule for presence of Content-Description header

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


Author: twesterhever
Date: 2024-04-28 09:43:44 +0000
URL: https://github.com/rspamd/rspamd/commit/3e1c8da3e97ae1eaf2bb37ad9ef7c96c318baae7

[Minor] Add rule for presence of Content-Description header

---
 rules/regexp/headers.lua | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 6f163bcd1..f7e23501c 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -903,6 +903,13 @@ reconf['HAS_ORG_HEADER'] = {
   group = 'headers'
 }
 
+reconf['HAS_CD_HEADER'] = {
+  re = string.format('header_exists(Content-Description)'),
+  description = 'Has Content-Description header',
+  score = 0.0,
+  group = 'headers'
+}
+
 reconf['X_PHPOS_FAKE'] = {
   re = 'X-PHP-Originating-Script=/^\\d{7}:/Hi',
   description = 'Fake X-PHP-Originating-Script header',


More information about the Commits mailing list