]> source.dussan.org Git - rspamd.git/commitdiff
Update rspamd.lua
authorAlexey AL <AlexeySa@users.noreply.github.com>
Sat, 7 Feb 2015 16:00:20 +0000 (19:00 +0300)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 13 Feb 2015 11:34:29 +0000 (13:34 +0200)
conf/lua/rspamd.lua

index 6d5e53d9dc8054cc17470cb6036500ac1b1dad00..c35e15d983ea17bca74b747b8eb08ae0b09b097b 100644 (file)
@@ -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'}