aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-14 14:13:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-14 14:13:25 +0100
commit60c516af8d40ccbefec3594e50cbbe567eee1200 (patch)
tree13896996b2fa5edc96830e46d3011feb159a2fd7 /src/plugins/lua
parentf7817011cd0fa1d593ffae453f3802f51a1d977e (diff)
downloadrspamd-60c516af8d40ccbefec3594e50cbbe567eee1200.tar.gz
rspamd-60c516af8d40ccbefec3594e50cbbe567eee1200.zip
[Minor] Fix registration
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/emails.lua12
1 files 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