diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-10 13:23:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-10 13:23:06 +0000 |
commit | 558bd1edde59773d13fe9d580dbd5b0a80ae976b (patch) | |
tree | 0ce534c4cf6256755781d29d8408015fe032f8b7 /src/plugins/lua | |
parent | 55197791215b0120e3eb217d56904052417199e1 (diff) | |
download | rspamd-558bd1edde59773d13fe9d580dbd5b0a80ae976b.tar.gz rspamd-558bd1edde59773d13fe9d580dbd5b0a80ae976b.zip |
Write errors about missing SA conf files
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/spamassassin.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 |