diff options
Diffstat (limited to '')
-rw-r--r-- | test/functional/lua/test_fname.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/lua/test_fname.lua b/test/functional/lua/test_fname.lua new file mode 100644 index 0000000..ffa7bb9 --- /dev/null +++ b/test/functional/lua/test_fname.lua @@ -0,0 +1,12 @@ +rspamd_config.TEST_FNAME = { + callback = function(task) + local r = task:get_parts() + local fnames = {} + for _,rh in ipairs(r) do + if rh:get_filename() then + table.insert(fnames, rh:get_filename()) + end + end + return true,1.0,fnames + end +}
\ No newline at end of file |