]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix registration
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 May 2018 13:13:25 +0000 (14:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 May 2018 13:13:25 +0000 (14:13 +0100)
src/plugins/lua/emails.lua

index fb9e4eb31b723fa8ca125790c88f97b4f5977d13..51df0e9594cc3af199b45844c5f5678c2fe24b83 100644 (file)
@@ -246,11 +246,13 @@ if #rules > 0 then
 
     if rule.returncodes then
       for k,_ in pairs(rule.returncodes) do
-        rspamd_config:register_symbol({
-          name = k,
-          parent = id,
-          type = 'virtual'
-        })
+        if k ~= rule['symbol'] then
+          rspamd_config:register_symbol({
+            name = k,
+            parent = id,
+            type = 'virtual'
+          })
+        end
       end
     end
   end