aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_mimepart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_mimepart.c')
-rw-r--r--src/lua/lua_mimepart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index b8f7d8f85..d519cccbe 100644
--- a/src/lua/lua_mimepart.c
+++ b/src/lua/lua_mimepart.c
@@ -151,7 +151,7 @@ static const struct luaL_reg textpartlib_m[] = {
@example
rspamd_config.MISSING_CONTENT_TYPE = function(task)
local parts = task:get_parts()
- if parts and table.maxn(parts) > 1 then
+ if parts and #parts > 1 then
-- We have more than one part
for _,p in ipairs(parts) do
local ct = p:get_header('Content-Type')