Browse Source

[Minor] Convert from rspamd_text

tags/1.6.2
Vsevolod Stakhov 7 years ago
parent
commit
011de521fb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/plugins/lua/greylist.lua

+ 2
- 2
src/plugins/lua/greylist.lua View File

@@ -207,7 +207,7 @@ local function greylist_check(task)
task:insert_result(settings['symbol'], 0.0, 'greylisted', end_time)

local ua = task:get_request_header('User-Agent') or ''
if ua == 'rspamc' then return end -- Likely rspamc scan
if tostring(ua) == 'rspamc' then return end -- Likely rspamc scan

if settings.message_func then
task:set_pre_result('soft reject',
@@ -312,7 +312,7 @@ local function greylist_set(task)

local ua = task:get_request_header('User-Agent') or ''
local is_rspamc = false
if ua == 'rspamc' then is_rspamc = true end
if tostring(ua) == 'rspamc' then is_rspamc = true end

if is_whitelisted then
if action == 'greylist' then

Loading…
Cancel
Save