From: twesterhever <40121680+twesterhever@users.noreply.github.com> Date: Sun, 28 Apr 2024 09:43:44 +0000 (+0000) Subject: [Minor] Add rule for presence of Content-Description header X-Git-Tag: 3.9.0~50^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e1c8da3e97ae1eaf2bb37ad9ef7c96c318baae7;p=thirdparty%2Frspamd.git [Minor] Add rule for presence of Content-Description header --- diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 6f163bcd13..f7e23501c5 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',