From: Vsevolod Stakhov Date: Tue, 15 Jan 2019 14:52:48 +0000 (+0000) Subject: [Rules] Fix the case when there are no received headers X-Git-Tag: 1.9.0~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6296a24a75b00bd04d16031d6b09080baa7c56c1;p=thirdparty%2Frspamd.git [Rules] Fix the case when there are no received headers --- diff --git a/rules/misc.lua b/rules/misc.lua index f6d1c81b95..26f2a1357e 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -198,7 +198,7 @@ local check_rcvd = rspamd_config:register_symbol{ group = 'headers', callback = function (task) local rcvds = task:get_received_headers() - if not rcvds then return false end + if not rcvds or #rcvds == 0 then return false end local all_tls = fun.all(function(rc) return rc.flags and rc.flags['ssl']