aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/spamassassin.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-11 14:54:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-11 14:54:11 +0100
commite8114c7e36e8f7d95064dec7166abe176b06ae4b (patch)
tree38d1852dd2f001e09d2aa00d81fafec097428f1f /src/plugins/lua/spamassassin.lua
parent35dbb9cf3c2e5819d6ef14641fb01faf212aabbb (diff)
downloadrspamd-e8114c7e36e8f7d95064dec7166abe176b06ae4b.tar.gz
rspamd-e8114c7e36e8f7d95064dec7166abe176b06ae4b.zip
[Fix] Fix eval:check_for_missing_to_header rule
Diffstat (limited to 'src/plugins/lua/spamassassin.lua')
-rw-r--r--src/plugins/lua/spamassassin.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index 69a3d1f78..8ab37cf7e 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -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