aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorLyuben Bahtarliev <>2023-09-12 00:26:59 +0300
committerLyuben Bahtarliev <>2023-09-12 23:36:40 +0300
commit4824b17181d300954751b84272543ece4b81e9a7 (patch)
tree8ffea086093d7152c47ac674539481e855880043 /src/plugins
parent5bb1ce5ee2cb9ef383e6bdc82adfaafd058e925b (diff)
downloadrspamd-4824b17181d300954751b84272543ece4b81e9a7.tar.gz
rspamd-4824b17181d300954751b84272543ece4b81e9a7.zip
[Feature] Add ICAP Content-Type and Filename from TODO List. Simplify changes. Remove unnecessary debug message.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/external_services.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/lua/external_services.lua b/src/plugins/lua/external_services.lua
index 98a0a6d93..e299d9faa 100644
--- a/src/plugins/lua/external_services.lua
+++ b/src/plugins/lua/external_services.lua
@@ -181,19 +181,12 @@ local function add_scanner_rule(sym, opts)
fun.each(function(p)
local content = p:get_content()
if content and #content > 0 then
- local in_fname = p:get_filename()
- local in_type, in_stype = p:get_detected_type()
- local part_info = {in_fname,in_type,in_stype}
- cfg.check(task, content, p:get_digest(), rule, part_info)
+ cfg.check(task, content, p:get_digest(), rule, p)
end
end, common.check_parts_match(task, rule))
else
- local in_fname = "mail"
- local in_type = "application"
- local in_stype = "octet-stream"
- local part_info = {in_fname,in_type,in_stype}
- cfg.check(task, task:get_content(), task:get_digest(), rule, part_info)
+ cfg.check(task, task:get_content(), task:get_digest(), rule, nil)
end
end