diff options
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r-- | src/libmime/message.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 3acc935e6..84870a8b0 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1,5 +1,5 @@ /* - * Copyright 2023 Vsevolod Stakhov + * Copyright 2024 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -994,7 +994,7 @@ rspamd_message_from_data(struct rspamd_task *task, const guchar *start, rspamd_lua_setclass(L, "rspamd{mimepart}", -1); *pmime = part; ptask = lua_newuserdata(L, sizeof(struct rspamd_task *)); - rspamd_lua_setclass(L, "rspamd{task}", -1); + rspamd_lua_setclass(L, rspamd_task_classname, -1); *ptask = task; if (lua_pcall(L, 2, 2, 0) != 0) { @@ -1447,7 +1447,7 @@ void rspamd_message_process(struct rspamd_task *task) rspamd_lua_setclass(L, "rspamd{mimepart}", -1); *pmime = part; ptask = lua_newuserdata(L, sizeof(struct rspamd_task *)); - rspamd_lua_setclass(L, "rspamd{task}", -1); + rspamd_lua_setclass(L, rspamd_task_classname, -1); *ptask = task; if (lua_pcall(L, 2, 2, err_idx) != 0) { @@ -1519,7 +1519,7 @@ void rspamd_message_process(struct rspamd_task *task) rspamd_lua_setclass(L, "rspamd{mimepart}", -1); *pmime = part; ptask = lua_newuserdata(L, sizeof(struct rspamd_task *)); - rspamd_lua_setclass(L, "rspamd{task}", -1); + rspamd_lua_setclass(L, rspamd_task_classname, -1); *ptask = task; if (lua_pcall(L, 2, 0, err_idx) != 0) { |