]> 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)
committerAlexey AL <AlexeySa@users.noreply.github.com>
Sat, 7 Feb 2015 16:00:20 +0000 (19:00 +0300)
conf/lua/rspamd.lua

index 1b06fdc1a22e47c0256835a34ea777b29e2bad07..aab77d5c424f4d9b94fd7a123c2c3aec04eba48b 100644 (file)
@@ -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'}