]> source.dussan.org Git - rspamd.git/commitdiff
Rename symbol in Hfilter
authorAlexey <AlexeySa@users.noreply.github.com>
Mon, 3 Feb 2014 18:09:49 +0000 (10:09 -0800)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Feb 2014 13:06:49 +0000 (13:06 +0000)
Rename symbol HFILTER_HOSTNAME_NOPTR to HFILTER_HOSTNAME_UNKNOWN

conf/lua/hfilter.lua

index db940343d3e67aa8dcb2ae9d78a7946b5bcb6c1f..0c1d887e8de78982857916bd8fe2193312189e81 100644 (file)
@@ -208,7 +208,7 @@ local function hfilter(task)
     if hostname then
         -- Check regexp HOSTNAME
         if hostname == 'unknown' then
-            task:insert_result('HFILTER_HOSTNAME_NOPTR', 1.00)
+            task:insert_result('HFILTER_HOSTNAME_UNKNOWN', 1.00)
         else
             for regexp,weight in pairs(checks_hellohost) do
                 if check_regexp(hostname, regexp) then
@@ -295,5 +295,5 @@ rspamd_config:register_symbols(hfilter, 1.0,
 "HFILTER_HELO_NORESOLVE_MX", "HFILTER_HELO_NORES_A_OR_MX", "HFILTER_HELO_IP_A", "HFILTER_HELO_NOT_FQDN", 
 "HFILTER_FROMHOST_NORESOLVE_MX", "HFILTER_FROMHOST_NORES_A_OR_MX", "HFILTER_FROMHOST_NOT_FQDN",  
 "HFILTER_MID_NOT_FQDN",
-"HFILTER_HOSTNAME_NOPTR",
+"HFILTER_HOSTNAME_UNKNOWN",
 "HFILTER_URL_ONLY", "HFILTER_URL_ONELINE");