commit 20f3454: [Fix] lua_scanner - oletools typos, logging
Carsten Rosenberg
c.rosenberg at heinlein-support.de
Thu Jan 17 15:07:11 UTC 2019
Author: Carsten Rosenberg
Date: 2019-01-13 13:21:43 +0100
URL: https://github.com/rspamd/rspamd/commit/20f34540fcf57d53367bfbc590148c1b5ad018d5
[Fix] lua_scanner - oletools typos, logging
---
lualib/lua_scanners/oletools.lua | 9 ++++-----
1 file 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
More information about the Commits
mailing list