diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-04 15:17:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-04 15:17:33 +0100 |
commit | 5281989b8d889350570df72c05466212efb511ef (patch) | |
tree | d6146dd064678aaf282c24a1fe6ced86a6cef094 /src/lua | |
parent | 03729690b7137c1bdbe8b1d3b770ef8493300126 (diff) | |
download | rspamd-5281989b8d889350570df72c05466212efb511ef.tar.gz rspamd-5281989b8d889350570df72c05466212efb511ef.zip |
Extract mime part, not text part in task:get_parts
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 201888c3c..4c323a172 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -918,7 +918,7 @@ lua_task_get_parts (lua_State * L) lua_newtable (L); for (i = 0; i < task->parts->len; i ++) { - part = g_ptr_array_index (task->text_parts, i); + part = g_ptr_array_index (task->parts, i); ppart = lua_newuserdata (L, sizeof (struct mime_part *)); *ppart = part; rspamd_lua_setclass (L, "rspamd{mimepart}", -1); |