diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-27 13:15:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-27 13:15:09 +0100 |
commit | 37832e030102a1cef9c678d5b50308c548694f41 (patch) | |
tree | cc58af042cef53b8f50023dcf9d247114c31b959 /src/plugins | |
parent | c4afaa5c5ea70b73f50bf307004d3589825fd9aa (diff) | |
download | rspamd-37832e030102a1cef9c678d5b50308c548694f41.tar.gz rspamd-37832e030102a1cef9c678d5b50308c548694f41.zip |
[Fix] Fix greylisting plugin variable usage
Issue: #758
Reported by: @dehnli
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/greylist.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 1f62e6bda..56598998d 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -145,7 +145,6 @@ local function greylist_check(task) local greylisted_body = false local ret_meta = false local greylisted_meta = false - local time local greylist_type if data then @@ -202,7 +201,8 @@ local function greylist_check(task) upstream:fail() end elseif greylisted_body and greylisted_meta then - local end_time = rspamd_util.time_to_string(time + settings['timeout']) + local end_time = rspamd_util.time_to_string(rspamd_util.get_time() + + settings['timeout']) rspamd_logger.infox(task, 'greylisted till "%s" using %s key', end_time, type) task:insert_result(settings['symbol'], 0.0, 'greylisted', end_time, |