From 558bd1edde59773d13fe9d580dbd5b0a80ae976b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 10 Dec 2015 13:23:06 +0000 Subject: Write errors about missing SA conf files --- src/plugins/lua/spamassassin.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/lua') diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index 10457d2d7..d714ecc5b 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -651,7 +651,6 @@ local function process_sa_conf(f) end cur_rule['symbol'] = words[2] - if words[3] and (string.sub(words[3], 1, 1) == '/' or string.sub(words[3], 1, 1) == 'm') then cur_rule['type'] = 'part' @@ -787,6 +786,8 @@ if type(section) == "table" then f = io.open(elt, "r") if f then process_sa_conf(f) + else + rspamd_logger.errx(rspamd_config, "cannot open %s", elt) end end else @@ -794,6 +795,8 @@ if type(section) == "table" then f = io.open(fn, "r") if f then process_sa_conf(f) + else + rspamd_logger.errx(rspamd_config, "cannot open %s", fn) end end end -- cgit v1.2.3