aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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