aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey AL <AlexeySa@users.noreply.github.com>2015-02-07 19:00:20 +0300
committerAlexey AL <AlexeySa@users.noreply.github.com>2015-02-07 19:00:20 +0300
commit48621d03c6bb140d0d9e045cd51141ec7af1b2f9 (patch)
tree041eeec267f39934ae650a914c15e737bd819591
parentca93090f76b1c4b5536489d6c42fc983802b4c49 (diff)
downloadrspamd-48621d03c6bb140d0d9e045cd51141ec7af1b2f9.tar.gz
rspamd-48621d03c6bb140d0d9e045cd51141ec7af1b2f9.zip
Update rspamd.lua
-rw-r--r--conf/lua/rspamd.lua9
1 files changed, 9 insertions, 0 deletions
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'}