aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 14:00:08 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 14:00:08 +0000
commit75327b3889c80ad0a0c95ccf4444b5c2bc148e14 (patch)
treed322e1dda625fed70ded03abe1a179134624bd8e /src/libmime
parent72539a7ad17fb79ef68c39d728a5f706947e3441 (diff)
downloadrspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.tar.gz
rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.zip
[Project] Convert the remaining
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 84870a8b0..4fb118e60 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -991,7 +991,7 @@ rspamd_message_from_data(struct rspamd_task *task, const guchar *start,
struct rspamd_task **ptask;
pmime = lua_newuserdata(L, sizeof(struct rspamd_mime_part *));
- rspamd_lua_setclass(L, "rspamd{mimepart}", -1);
+ rspamd_lua_setclass(L, rspamd_mimepart_classname, -1);
*pmime = part;
ptask = lua_newuserdata(L, sizeof(struct rspamd_task *));
rspamd_lua_setclass(L, rspamd_task_classname, -1);
@@ -1444,7 +1444,7 @@ void rspamd_message_process(struct rspamd_task *task)
gint err_idx = lua_gettop(L);
lua_pushvalue(L, magic_func_pos);
pmime = lua_newuserdata(L, sizeof(struct rspamd_mime_part *));
- rspamd_lua_setclass(L, "rspamd{mimepart}", -1);
+ rspamd_lua_setclass(L, rspamd_mimepart_classname, -1);
*pmime = part;
ptask = lua_newuserdata(L, sizeof(struct rspamd_task *));
rspamd_lua_setclass(L, rspamd_task_classname, -1);
@@ -1516,7 +1516,7 @@ void rspamd_message_process(struct rspamd_task *task)
gint err_idx = lua_gettop(L);
lua_pushvalue(L, content_func_pos);
pmime = lua_newuserdata(L, sizeof(struct rspamd_mime_part *));
- rspamd_lua_setclass(L, "rspamd{mimepart}", -1);
+ rspamd_lua_setclass(L, rspamd_mimepart_classname, -1);
*pmime = part;
ptask = lua_newuserdata(L, sizeof(struct rspamd_task *));
rspamd_lua_setclass(L, rspamd_task_classname, -1);