diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-04-25 18:29:00 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-04-25 18:29:00 +0300 |
commit | abe84f28cea90ccdaad3d06c3e70de6a8b267409 (patch) | |
tree | f37091671fd734c8c2b2998091536bd3ad97c11a /rules | |
parent | 4f4bad10a673961c4f613d4e536481574181a66a (diff) | |
download | rspamd-abe84f28cea90ccdaad3d06c3e70de6a8b267409.tar.gz rspamd-abe84f28cea90ccdaad3d06c3e70de6a8b267409.zip |
Fix `RCVD_TLS_ALL` rule when there are no `Received` headers
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index f72efea87..176dac853 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -291,6 +291,7 @@ rspamd_config.ENVFROM_VERP = { rspamd_config.RCVD_TLS_ALL = { callback = function (task) local rcvds = task:get_header_full('Received') + if not rcvds then return false end local count = 0 local encrypted = 0 for _, rcvd in ipairs(rcvds) do |