Module lua_selectors

This module contains ‘selectors’ implementation: code to extract data from Rspamd tasks and compose those together. Typical selector looks like this: header(User).lower.substring(1, 2):ip

Brief content:

Functions:

lua_selectors.parse_selector(cfg, str)

lua_selectors.register_extractor(cfg, name, selector)

lua_selectors.register_transform(cfg, name, transform)

lua_selectors.process_selectors(task, selectors_pipe)

lua_selectors.combine_selectors(task, selectors, delimiter)

lua_selectors.create_closure(cfg, selector_str, delimiter='')

Functions

The module lua_selectors defines the following functions.

Function lua_selectors.parse_selector(cfg, str)

Parameters:

No parameters

Returns:

No return

Back to module description.

Function lua_selectors.register_extractor(cfg, name, selector)

Parameters:

No parameters

Returns:

No return

Back to module description.

Function lua_selectors.register_transform(cfg, name, transform)

Parameters:

No parameters

Returns:

No return

Back to module description.

Function lua_selectors.process_selectors(task, selectors_pipe)

Parameters:

No parameters

Returns:

No return

Back to module description.

Function lua_selectors.combine_selectors(task, selectors, delimiter)

Parameters:

No parameters

Returns:

No return

Back to module description.

Function lua_selectors.create_closure(cfg, selector_str, delimiter='')

Parameters:

No parameters

Returns:

No return

Back to module description.

Back to top.