aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-02-29 23:28:09 +0600
committerGitHub <noreply@github.com>2024-02-29 23:28:09 +0600
commit8154c91fb7c598786058ce93658a143bf858847a (patch)
treea6cab0ebb7c26b2f057a03da5607aef5d666503a
parent78f4df1e3fa18b8a972712531261abd9e0663803 (diff)
parentc599cb599e4c8df12ade63211e6c307e05a70276 (diff)
downloadrspamd-8154c91fb7c598786058ce93658a143bf858847a.tar.gz
rspamd-8154c91fb7c598786058ce93658a143bf858847a.zip
Merge pull request #4846 from twesterhever/temp-file-url
[Minor] Add HAS_FILE_URL rule for messages containing a file:// URL
-rw-r--r--rules/regexp/headers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 0624997aa..5f6a49437 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -938,6 +938,13 @@ reconf['HAS_GOOGLE_FIREBASE_URL'] = {
group = 'url'
}
+reconf['HAS_FILE_URL'] = {
+ re = '/^file:\\/\\//{url}i',
+ description = 'Contains file:// URL',
+ score = 2.0,
+ group = 'url'
+}
+
reconf['XM_UA_NO_VERSION'] = {
re = string.format('(!%s && !%s) && (%s || %s)',
'X-Mailer=/https?:/H',