From: Vsevolod Stakhov Date: Fri, 17 Aug 2018 19:18:03 +0000 (+0100) Subject: [Minor] Allow to extract raw header X-Git-Tag: 1.8.0~244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c52111a871f4245c0ec1972591ad525da65af2f;p=thirdparty%2Frspamd.git [Minor] Allow to extract raw header --- diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 8a15714549..4a58459741 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'] = {