From 2237481903caa32c1b5d5042aaaca0f5ce11e0f1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Feb 2021 16:08:24 +0000 Subject: [Project] Rework API for the modified headers --- src/lua/lua_task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua/lua_task.c') diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 1095d1a60..f4dee6d65 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2934,7 +2934,7 @@ lua_task_get_header_common (lua_State *L, enum rspamd_lua_task_header_type how) strong = lua_toboolean (L, 3); } - rh = rspamd_message_get_header_array (task, name); + rh = rspamd_message_get_header_array(task, name, FALSE); return rspamd_lua_push_header_array (L, name, rh, how, strong); } @@ -3988,7 +3988,7 @@ lua_task_get_reply_sender (lua_State *L) if (task) { - rh = rspamd_message_get_header_array (task, "Reply-To"); + rh = rspamd_message_get_header_array(task, "Reply-To", FALSE); if (rh) { lua_pushstring (L, rh->decoded); @@ -5082,7 +5082,7 @@ lua_task_get_date (lua_State *L) } } else { - h = rspamd_message_get_header_array (task, "Date"); + h = rspamd_message_get_header_array(task, "Date", FALSE); if (h) { time_t tt; -- cgit v1.2.3