[Rspamd-Users] set_metric_action?

Vsevolod Stakhov vsevolod at rspamd.com
Thu Nov 22 14:10:05 UTC 2018


On 22/11/2018 14:04, Aki Kyo wrote:
> On 11/22/18, Vsevolod Stakhov <vsevolod at rspamd.com> wrote:
>> 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
> 
> Thanks, you might want to update the documentation.
> 

There is 'edit this page' button on each documentation page. Please use
it. Otherwise, it won't likely be fixed.


More information about the Users mailing list