]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix symbol name 4610/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 25 Sep 2023 14:10:55 +0000 (15:10 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 25 Sep 2023 14:10:55 +0000 (15:10 +0100)
src/plugins/lua/known_senders.lua

index 5a04c7dd0822ce008090b6cd14f9f43cccbf7f67..588a180fcdd4b705bed103c2b51c1d3988c4029f 100644 (file)
@@ -83,7 +83,7 @@ local function check_redis_key(task, key, key_ty)
         task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
       else
         if settings.symbol_unknown then
-          task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
+          task:insert_result(settings.symbol_unknown, 1.0, string.format("%s:%s", key_ty, key))
         end
         lua_util.debugm(N, task, 'insert key %s, type: %s', key, key_ty)
         -- Insert key to zset and trim it's cardinality
@@ -118,7 +118,7 @@ local function check_redis_key(task, key, key_ty)
         task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
       else
         if settings.symbol_unknown then
-          task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
+          task:insert_result(settings.symbol_unknown, 1.0, string.format("%s:%s", key_ty, key))
         end
         lua_util.debugm(N, task, 'insert key %s, type: %s', key, key_ty)
         -- Reserve bloom filter space