summaryrefslogtreecommitdiffstats
path: root/rules/mid.lua
diff options
context:
space:
mode:
authorLionel <lionel.prat9@gmail.com>2020-10-07 13:13:57 +0200
committerGitHub <noreply@github.com>2020-10-07 13:13:57 +0200
commit2cb15c8db95a3256a259b35f8efa9af8327241cd (patch)
treef0740507df455584412bf73e490c106ad723b7e4 /rules/mid.lua
parentecbf70a7ee51f643f10125dbede445a44a703c0c (diff)
downloadrspamd-2cb15c8db95a3256a259b35f8efa9af8327241cd.tar.gz
rspamd-2cb15c8db95a3256a259b35f8efa9af8327241cd.zip
fix util name
Diffstat (limited to 'rules/mid.lua')
-rw-r--r--rules/mid.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules/mid.lua b/rules/mid.lua
index a7ffb27e1..760a2f30a 100644
--- a/rules/mid.lua
+++ b/rules/mid.lua
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
]]--
-local util = require "rspamd_util"
+local rspamd_util = require "rspamd_util"
local function mid_check_func(task)
local mid = task:get_header('Message-ID')
if not mid then return false end
@@ -46,8 +46,8 @@ local function mid_check_func(task)
local fdtld = nil
local mdtld = nil
if md then
- fdtld = util.get_tld(fd)
- mdtld = util.get_tld(md)
+ fdtld = rspamd_util.get_tld(fd)
+ mdtld = rspamd_util.get_tld(md)
end
if (mid:lower():find(from[1].addr:lower(),1,true)) then
task:insert_result('MID_CONTAINS_FROM', 1.0)