From: Alexey AL Date: Sat, 7 Feb 2015 16:00:20 +0000 (+0300) Subject: Update rspamd.lua X-Git-Tag: 0.8.2~47^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efd3ade077479371b223060fa0c791089ecc90d3;p=thirdparty%2Frspamd.git Update rspamd.lua --- diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua index 6d5e53d9dc..c35e15d983 100644 --- a/conf/lua/rspamd.lua +++ b/conf/lua/rspamd.lua @@ -67,6 +67,15 @@ rspamd_config.R_EMPTY_IMAGE = function (task) end -- Date issues +rspamd_config.DATE_NOT_EXISTS = function(task) + if rspamd_config:get_api_version() >= 5 then + if not task:get_header_raw('Date') then + return true + end + end + + return false +end rspamd_config.DATE_IN_FUTURE = function(task) if rspamd_config:get_api_version() >= 5 then local dm = task:get_date{format = 'message'}