From 60c516af8d40ccbefec3594e50cbbe567eee1200 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 May 2018 14:13:25 +0100 Subject: [PATCH] [Minor] Fix registration --- src/plugins/lua/emails.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua index fb9e4eb31..51df0e959 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -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 -- 2.39.5