瀏覽代碼

fix util name

tags/2.7
Lionel 3 年之前
父節點
當前提交
2cb15c8db9
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      rules/mid.lua

+ 3
- 3
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)

Loading…
取消
儲存