diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/greylist.lua | 9 |
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)) |