aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_mime.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-12-05 11:43:31 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-12-05 11:43:31 +0000
commit53f73e02a4daf884a31a69e3f55ad1328c3bd1d3 (patch)
treefc117ab7d52cce96a3727ffd28a09aa5e7da34e4 /lualib/lua_mime.lua
parent11e153c0147690a9649966263b393ec1ad750c1b (diff)
downloadrspamd-53f73e02a4daf884a31a69e3f55ad1328c3bd1d3.tar.gz
rspamd-53f73e02a4daf884a31a69e3f55ad1328c3bd1d3.zip
[Minor] Fix misprint
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r--lualib/lua_mime.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua
index 75e5d11f8..bb65dc9ba 100644
--- a/lualib/lua_mime.lua
+++ b/lualib/lua_mime.lua
@@ -941,7 +941,7 @@ exports.get_displayed_text_part = function(task)
end
if text_part then
- local word_count = html_part:get_words_count() or 0
+ local word_count = text_part:get_words_count() or 0
if word_count >= 10 then
-- Arbitrary minimum threshold, e.g. I believe it's minimum sane
return text_part