aboutsummaryrefslogtreecommitdiffstats
path: root/conf/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-24 18:55:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-24 18:55:47 +0000
commit928d072ceca774b81c390675b24a44c1498f8eac (patch)
tree8a01a58373fec739201355c2b496ac1853f6f2cb /conf/lua
parentb3a62f0ac6a87cdbf2044d58d9504a7f5e9a2d43 (diff)
downloadrspamd-928d072ceca774b81c390675b24a44c1498f8eac.tar.gz
rspamd-928d072ceca774b81c390675b24a44c1498f8eac.zip
Remove HELO_NOT_FQDN as it exists in hfilter.
Submitted by: AL
Diffstat (limited to 'conf/lua')
-rw-r--r--conf/lua/rspamd.lua19
1 files changed, 0 insertions, 19 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}(?<!-)\\.)+[a-zA-Z]{2,63}$)') then
- return true
- end
-end
-
-return false
-end
-
local function file_exists(filename)
local file = io.open(filename)
if file then