diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/emails.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua index 232ca2655..862d82725 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -92,7 +92,11 @@ if opts and type(opts) == 'table' then if rule['map'] then rule['name'] = rule['map'] - rule['map'] = rspamd_config:add_hash_map (rule['name']) + rule['map'] = rspamd_config:add_map({ + url = rule['name'], + description = string.format('Emails rule %s', rule['symbol']), + type = 'regexp' + }) end if not rule['symbol'] or (not rule['map'] and not rule['dnsbl']) then logger.errx(rspamd_config, 'incomplete rule') |