]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add R_HTTP_URL_IN_FROM
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Mon, 24 Mar 2025 14:42:31 +0000 (15:42 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Mar 2025 14:42:31 +0000 (15:42 +0100)
rules/regexp/headers.lua

index 3aba02d86787d5a8e6f685ae4f8d0520af95a3f3..ca5578284ceaabd0865d87b18d577dd3ac159dbc 100644 (file)
@@ -69,6 +69,14 @@ if rspamd_config:is_mime_utf8() then
   end
 end
 
+reconf['R_HTTP_URL_IN_FROM'] = {
+  re = [[From=/\shttps?:\/\/\S/iH]],
+  score = 5.0,
+  mime_only = true,
+  description = 'HTTP URL in From header',
+  group = 'headers'
+}
+
 -- Detects that there is no space in From header (e.g. Some Name<some@host>)
 reconf['R_NO_SPACE_IN_FROM'] = {
   re = 'From=/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/X',