aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-23 16:08:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-23 16:08:24 +0000
commit2237481903caa32c1b5d5042aaaca0f5ce11e0f1 (patch)
tree5ba61b5cd001e363c4a8e4f29334dd4d7632b184 /src/lua/lua_task.c
parent0befc8068f59f4e2c34811fdb898b6ff21da3fd4 (diff)
downloadrspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.tar.gz
rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.zip
[Project] Rework API for the modified headers
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c6
1 files changed, 3 insertions, 3 deletions
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;