]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix eval:check_for_missing_to_header rule
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Apr 2016 13:54:11 +0000 (14:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Apr 2016 13:54:11 +0000 (14:54 +0100)
src/plugins/lua/spamassassin.lua

index 69a3d1f78b67a53268a76dec286eda8486fc5552..8ab37cf7e0a6988d575b8fe0d2e45367b004a204 100644 (file)
@@ -330,7 +330,8 @@ local function gen_eval_rule(arg)
     {
       'check_for_missing_to_header',
       function (task, remain)
-        if not task:get_recipients('mime') then
+        local th = task:get_recipients('mime')
+        if not th or #th == 0 then
           return 1
         end