aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'}