From: Alexey AL Date: Sat, 7 Feb 2015 16:00:20 +0000 (+0300) Subject: Update rspamd.lua X-Git-Tag: 0.9.0~748^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48621d03c6bb140d0d9e045cd51141ec7af1b2f9;p=rspamd.git Update rspamd.lua --- diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua index 1b06fdc1a..aab77d5c4 100644 --- a/conf/lua/rspamd.lua +++ b/conf/lua/rspamd.lua @@ -41,6 +41,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'}