]> source.dussan.org Git - rspamd.git/commit
Add `rspamd_config:add_map` lua function.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Jul 2014 12:24:20 +0000 (13:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Jul 2014 12:24:20 +0000 (13:24 +0100)
commit21c88e3af74ef2271b4add7c92e54f35dfb8d619
tree5492f8b0019ce3821a54fce1bcb2624da9fc91ca
parent6c58291460844219093a0e17c4a4db926c148679
Add `rspamd_config:add_map` lua function.

This function is intended to create maps with lua callback that is
called on map reading. For example:

```
local function cb(input)
print(input)
end

rspamd_config:add_map('http://example.com/test.map', 'cool map`, cb)
```
src/lua/lua_config.c
src/ucl