From a645c70082c32d2a60454b8bce30152b4760636b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 2 Jun 2015 14:19:55 +0100 Subject: Rework task processing. --- 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 8a8f6c640..36f100449 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -71,7 +71,7 @@ LUA_FUNCTION_DEF (task, create_empty); LUA_FUNCTION_DEF (task, create_from_buffer); /* Task methods */ LUA_FUNCTION_DEF (task, get_message); -LUA_FUNCTION_DEF (task, process_message); +LUA_FUNCTION_DEF (task, rspamd_message_parse); /*** * @method task:get_cfg() * Get configuration object for a task. @@ -474,7 +474,7 @@ static const struct luaL_reg tasklib_f[] = { static const struct luaL_reg tasklib_m[] = { LUA_INTERFACE_DEF (task, get_message), LUA_INTERFACE_DEF (task, destroy), - LUA_INTERFACE_DEF (task, process_message), + LUA_INTERFACE_DEF (task, rspamd_message_parse), LUA_INTERFACE_DEF (task, set_cfg), LUA_INTERFACE_DEF (task, get_cfg), LUA_INTERFACE_DEF (task, get_mempool), @@ -623,7 +623,7 @@ lua_task_process_message (lua_State *L) struct rspamd_task *task = lua_check_task (L, 1); if (task != NULL && task->msg.len > 0) { - if (process_message (task) == 0) { + if (rspamd_message_parse (task) == 0) { lua_pushboolean (L, TRUE); } else { -- cgit v1.2.3