From 928d072ceca774b81c390675b24a44c1498f8eac Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Dec 2013 18:55:47 +0000 Subject: [PATCH] Remove HELO_NOT_FQDN as it exists in hfilter. Submitted by: AL --- conf/lua/rspamd.lua | 19 ------------------- conf/metrics.conf | 5 ----- 2 files changed, 24 deletions(-) diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua index f51715934..e8b585837 100644 --- a/conf/lua/rspamd.lua +++ b/conf/lua/rspamd.lua @@ -68,25 +68,6 @@ reconf['DATE_IN_PAST'] = function(task) return false end -reconf['HELO_NOT_FQDN'] = function(task) -local helo = task:get_helo() - -local function check_regexp(str, regexp_text) - local re = regexp.get_cached(regexp_text) - if not re then re = regexp.create(regexp_text, 'i') end - if re:match(str) then return true end - return false -end - -if helo then - if not check_regexp(helo, '(?=^.{4,255}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?