return ret
end
end
- elseif mtype == 'regexp' then
+ elseif mtype == 'regexp' or mtype == 'glob' then
-- Plain table
local map = rspamd_config:add_map{
type = mtype,
-- Returns true if map was added or nil
-- @param {string} mname config section to use
-- @param {string} optname option name to use
--- @param {string} mtype type of map ('set', 'hash', 'radix', 'regexp')
+-- @param {string} mtype type of map ('set', 'hash', 'radix', 'regexp', 'glob')
-- @param {string} description human-readable description of map
-- @return {bool} true on success, or `nil`
--]]