]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Rework] Reputation: Slashing - change name of symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 May 2019 11:35:06 +0000 (12:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 May 2019 11:35:06 +0000 (12:35 +0100)
src/plugins/lua/reputation.lua

index ebfe2c04e44d240de8c95a40ee2012cf36f27ebe..06fda45a67b56066db6019e6c09e2f4503e2f8b9 100644 (file)
@@ -501,7 +501,8 @@ local ip_selector = {
       ['country'] = 0.01,
       ['ip'] = 1.0
     },
-    symbol = 'IP_SCORE', -- symbol to be inserted
+    symbol_spam = 'SENDER_REP', -- symbol to be inserted
+    split_symbols = true,
     asn_prefix = 'a:', -- prefix for ASN hashes
     country_prefix = 'c:', -- prefix for country hashes
     ip_prefix = 'i:',
@@ -564,7 +565,8 @@ end
 
 local spf_selector = {
   config = {
-    symbol = 'SPF_SCORE', -- symbol to be inserted
+    symbol = 'SPF_REP', -- symbol to be inserted
+    split_symbols = true,
     lower_bound = 10, -- minimum number of messages to be scored
     min_score = nil,
     max_score = nil,
@@ -692,6 +694,7 @@ local generic_selector = {
 
 local selectors = {
   ip = ip_selector,
+  sender = ip_selector, -- Better name
   url = url_selector,
   dkim = dkim_selector,
   spf = spf_selector,