[Rspamd-Users] set_metric_action?

Aki Kyo aki.2kyo at gmail.com
Tue Nov 20 22:17:18 UTC 2018


Please help? Without task:set_metric_action() rspamd custom Lua
postfilter script is crippled, how can we bring this back?


On 11/17/18, Aki Kyo <aki.2kyo at gmail.com> 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?
>


More information about the Users mailing list