diff options
author | Steve Freegard <steve@stevefreegard.com> | 2016-04-26 12:44:26 +0100 |
---|---|---|
committer | Steve Freegard <steve@stevefreegard.com> | 2016-04-26 12:44:26 +0100 |
commit | 61d5e4897543d185225f20913fef3723811d8c5e (patch) | |
tree | b8b912206c81e4f58a0a871a595fc2c1deb60274 /rules | |
parent | 603902c2d8d0f89de50007b7b8d344740918f0d5 (diff) | |
download | rspamd-61d5e4897543d185225f20913fef3723811d8c5e.tar.gz rspamd-61d5e4897543d185225f20913fef3723811d8c5e.zip |
Raise MISSING_DATE on empty string
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 176dac853..728b694cd 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -51,7 +51,8 @@ end -- Date issues rspamd_config.MISSING_DATE = function(task) if rspamd_config:get_api_version() >= 5 then - if not task:get_header_raw('Date') then + local date = task:get_header_raw('Date') + if date == nil or date == '' then return true end end |