[Rspamd-Users] set_metric_action?
Aki Kyo
aki.2kyo at gmail.com
Thu Nov 22 14:04:07 UTC 2018
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.
More information about the Users
mailing list