From: Vsevolod Stakhov Date: Mon, 19 Jun 2017 07:28:42 +0000 (+0100) Subject: [Minor] Convert from rspamd_text X-Git-Tag: 1.6.2~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=011de521fb453cc3621ea673a6b758624d7511cb;p=rspamd.git [Minor] Convert from rspamd_text --- diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 292d1fcaa..424cf5509 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -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