From: Vsevolod Stakhov Date: Mon, 14 May 2018 13:13:25 +0000 (+0100) Subject: [Minor] Fix registration X-Git-Tag: 1.7.5~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60c516af8d40ccbefec3594e50cbbe567eee1200;p=rspamd.git [Minor] Fix registration --- 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