description = newrule['description'],
type = 'regexp'
})
+ elseif newrule['glob'] then
+ newrule['hash'] = rspamd_config:add_map ({
+ url = newrule['map'],
+ description = newrule['description'],
+ type = 'glob'
+ })
else
newrule['hash'] = rspamd_config:add_map ({
url = newrule['map'],
description = newrule['description'],
type = 'regexp'
})
+ elseif newrule['glob'] then
+ newrule['hash'] = rspamd_config:add_map ({
+ url = newrule['map'],
+ description = newrule['description'],
+ type = 'glob'
+ })
else
newrule['hash'] = rspamd_config:add_map ({
url = newrule['map'],