diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-04-28 10:46:15 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-04-28 10:46:15 +0300 |
commit | 70c01c990ab4f82a1c7ff82f4c3f2df804de20a6 (patch) | |
tree | 3174d31cb80b12e91d545cc71e86b7e7121ab523 /conf/metrics.conf | |
parent | f79fdbdd27f29991c9d6d1ff6ba1232cef1f3c61 (diff) | |
download | rspamd-70c01c990ab4f82a1c7ff82f4c3f2df804de20a6.tar.gz rspamd-70c01c990ab4f82a1c7ff82f4c3f2df804de20a6.zip |
[Minor] Improve subject rules
Make scores depend on subject length
Also resolves #548
Diffstat (limited to 'conf/metrics.conf')
-rw-r--r-- | conf/metrics.conf | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/conf/metrics.conf b/conf/metrics.conf index 634a6f698..c79299df1 100644 --- a/conf/metrics.conf +++ b/conf/metrics.conf @@ -43,10 +43,6 @@ metric { weight = 1.500000; description = "Recipients seems to be autogenerated (works if recipients count is more than 5)"; } - symbol "FAKE_REPLY_C" { - weight = 6.0; - description = "Fake reply (has RE in subject, but has not References header)"; - } symbol "MIME_HTML_ONLY" { weight = 1.0; description = "Messages that have only HTML part"; @@ -285,6 +281,23 @@ metric { } } + group "subject" { + max_score = 6.0; + + symbol "FAKE_REPLY_C" { + weight = 6.0; + description = "Fake reply (has RE in subject, but has not References header)"; + } + symbol "LONG_SUBJ" { + weight = 6.0; + description = "Subject is too long"; + } + symbol "SUBJ_ALL_CAPS" { + weight = 3.0; + description = "No lower case letters in subject"; + } + } + group "mua" { symbol "FORGED_MUA_THEBAT_MSGID" { weight = 4.0; |