commit c912d5d: [Rework] Reputation: Slashing - change name of symbols

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 17 14:49:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-05-17 12:35:06 +0100
URL: https://github.com/rspamd/rspamd/commit/c912d5d7daaf3ba8c4d419b5f32138077dea980a

[Rework] Reputation: Slashing - change name of symbols

---
 src/plugins/lua/reputation.lua | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index ebfe2c04e..06fda45a6 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -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,


More information about the Commits mailing list