aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-09 11:34:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-09 11:34:02 +0000
commitfe8d8e6e2a8c108421bf9863805b6563ae3303e7 (patch)
tree6bb6ac241db99fda5a06387acd373730eead09c7 /src
parentb7108d649b8b7b65b6894df2e32383ed3667221e (diff)
downloadrspamd-fe8d8e6e2a8c108421bf9863805b6563ae3303e7.tar.gz
rspamd-fe8d8e6e2a8c108421bf9863805b6563ae3303e7.zip
[Minor] Fix new greylist records case
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/greylist.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index efbc31571..5a1f6c0f9 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -231,13 +231,8 @@ local function greylist_check(task)
local end_time_str
if not ret_body and not ret_meta then
- -- should never ever happen
- local end_time = rspamd_util.get_time() + settings['timeout']
- task:get_mempool():set_variable("grey_greylisted",
- rspamd_util.time_to_string(end_time))
- rspamd_logger.infox(task,
- 'greylisting record contains garbadge: %s, set end time to %s',
- data, rspamd_util.time_to_string(end_time))
+ -- no record found
+ task:get_mempool():set_variable("grey_greylisted", 'true')
elseif greylisted_body and greylisted_meta then
end_time_str = rspamd_util.time_to_string(
math.min(end_time_body, end_time_meta))