diff options
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_mime.lua | 2 |
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 |