aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-13 13:21:43 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-13 13:21:43 +0100
commit20f34540fcf57d53367bfbc590148c1b5ad018d5 (patch)
tree16153e43cc874b50ec57a6d34b49e63220dce09f /lualib/lua_scanners
parentc0f5acd353252b11ed2835df7350f66c42b79727 (diff)
downloadrspamd-20f34540fcf57d53367bfbc590148c1b5ad018d5.tar.gz
rspamd-20f34540fcf57d53367bfbc590148c1b5ad018d5.zip
[Fix] lua_scanner - oletools typos, logging
Diffstat (limited to 'lualib/lua_scanners')
-rw-r--r--lualib/lua_scanners/oletools.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/lualib/lua_scanners/oletools.lua b/lualib/lua_scanners/oletools.lua
index db2d57904..97e0172ca 100644
--- a/lualib/lua_scanners/oletools.lua
+++ b/lualib/lua_scanners/oletools.lua
@@ -16,8 +16,8 @@ limitations under the License.
]]--
--[[[
--- @module dcc
--- This module contains dcc access functions
+-- @module oletools
+-- This module contains oletools access functions
--]]
local lua_util = require "lua_util"
@@ -83,7 +83,6 @@ local function oletools_check(task, content, digest, rule)
if upstream then upstream:ok() end
data = tostring(data)
- lua_util.debugm(rule.module_name, task, 'data: %s', tostring(data))
local ucl_parser = ucl.parser()
local ok, ucl_err = ucl_parser:parse_string(tostring(data))
@@ -119,10 +118,10 @@ local function oletools_check(task, content, digest, rule)
elseif result[3]['return_code'] == 9 then
rspamd_logger.warnx(task, '%s: File is encrypted.', rule.log_prefix)
elseif result[3]['return_code'] > 6 then
- rspamd_logger.errx(task, '%s: Oletools Error Returned: %s',
+ rspamd_logger.errx(task, '%s: Error Returned: %s',
rule.log_prefix, oletools_rc[result[3]['return_code']])
elseif result[3]['return_code'] > 1 then
- rspamd_logger.errx(task, '%s: Oletools Error Returned: %s',
+ rspamd_logger.errx(task, '%s: Error Returned: %s',
rule.log_prefix, oletools_rc[result[3]['return_code']])
oletools_requery()
elseif result[2]['analysis'] == 'null' and #result[2]['macros'] == 0 then