]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add rule for presence of Content-Description header
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 28 Apr 2024 09:43:44 +0000 (09:43 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 28 Apr 2024 09:43:44 +0000 (09:43 +0000)
rules/regexp/headers.lua

index 6f163bcd139014f4ad0e3dbb41bc10f084a1b8ce..f7e23501c55c78a978d1bc55b478ccdb1a08427c 100644 (file)
@@ -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',