diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-17 20:18:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-17 20:18:03 +0100 |
commit | 6c52111a871f4245c0ec1972591ad525da65af2f (patch) | |
tree | 5bc4ab818aba57a468ea9ec5e3a5619e1e92723f | |
parent | de9ca456b037b5db3fb45b8f6be148e9ba32c9db (diff) | |
download | rspamd-6c52111a871f4245c0ec1972591ad525da65af2f.tar.gz rspamd-6c52111a871f4245c0ec1972591ad525da65af2f.zip |
[Minor] Allow to extract raw header
-rw-r--r-- | lualib/lua_selectors.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 8a1571454..4a5845974 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -317,6 +317,16 @@ local transform_function = { return inp.value end }, + -- Get header raw value + ['hdr_raw'] = { + ['types'] = { + ['header'] = true, + }, + ['map_type'] = 'string', + ['process'] = function(inp, _) + return inp.raw + end + }, -- Extracts table value from table ['elt'] = { ['types'] = { |