[Rspamd-Users] set_metric_action?

Vsevolod Stakhov vsevolod at rspamd.com
Thu Nov 22 10:03:40 UTC 2018


On 17/11/2018 21:24, Aki Kyo wrote:
> hi, I was using task:set_metric_action in a custom post-filter lua script:
> 
> task:set_metric_action('', 'add header')
> 
> the reason to use it is complex, force_action module could not
> suffice. In recent rspamd release, is set_metric_action deprecated? It
> has gone missing from Lua Task documentation page:
> 
> https://www.rspamd.com/doc/lua/rspamd_task.html
> 
> also it's broken:
> 
> task; lua_metric_symbol_callback_error: call to (my_postfilter_script)
> failed (2): /etc/rspamd/rspamd.local.lua:143: attempt to call method
> 'set_metric_action' (a nil value);
> 
> What's the new way to do this?
> 

https://rspamd.com/doc/lua/rspamd_task.html#m0426b


More information about the Users mailing list