aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-13 16:50:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-13 16:50:50 +0000
commitf1d528aafbd690b95a23b684ba0be69f3c5f781c (patch)
tree0a3e5f25623954c97a21a202499a4a9aa272fa51
parent8e2e5acf29e94e4064f57c5101382a04a1ddb8f1 (diff)
downloadrspamd-f1d528aafbd690b95a23b684ba0be69f3c5f781c.tar.gz
rspamd-f1d528aafbd690b95a23b684ba0be69f3c5f781c.zip
Allow the same keys in the configuration
-rw-r--r--src/plugins/lua/spamassassin.lua16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index a343be875..53a1fc6cf 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -520,9 +520,19 @@ if type(section) == "table" then
elseif k == 'match_limit' and type(fn) == 'number' then
match_limit = fn
else
- f = io.open(fn, "r")
- if f then
- process_sa_conf(f)
+ if type(fn) == 'table' then
+ for k,elt in ipairs(fn) do
+ f = io.open(elt, "r")
+ if f then
+ process_sa_conf(f)
+ end
+ end
+ else
+ -- assume string
+ f = io.open(fn, "r")
+ if f then
+ process_sa_conf(f)
+ end
end
end
end