From: Vsevolod Stakhov Date: Thu, 10 Dec 2015 13:23:06 +0000 (+0000) Subject: Write errors about missing SA conf files X-Git-Tag: 1.1.0~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=558bd1edde59773d13fe9d580dbd5b0a80ae976b;p=thirdparty%2Frspamd.git Write errors about missing SA conf files --- diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index 10457d2d7a..d714ecc5b7 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