diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-01 11:48:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-01 11:48:36 +0000 |
commit | 5105c3a6b233eb892abcbc00f8f610dafd264bc4 (patch) | |
tree | da3276651a7d02797f86015a9bae3484b5f528c4 /src/plugins/lua/spamassassin.lua | |
parent | cdecbbc8c5ef2c835e17ac6c3a4803459ee5fbd9 (diff) | |
download | rspamd-5105c3a6b233eb892abcbc00f8f610dafd264bc4.tar.gz rspamd-5105c3a6b233eb892abcbc00f8f610dafd264bc4.zip |
[Fix] Really fix chained SA dependencies
Diffstat (limited to 'src/plugins/lua/spamassassin.lua')
-rw-r--r-- | src/plugins/lua/spamassassin.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index c71fe12eb..e6d7639cf 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -1524,7 +1524,7 @@ local function post_process() local expr_atoms = r['expression']:atoms() for _,a in ipairs(expr_atoms) do if type(external_deps[a]) == 'table' then - for _,dep in ipairs(external_deps[a]) do + for dep in pairs(external_deps[a]) do if not external_deps[k] then external_deps[k] = {} end @@ -1532,11 +1532,11 @@ local function post_process() rspamd_config:register_dependency(k, dep) external_deps[k][dep] = true rspamd_logger.debugm(N, rspamd_config, - 'atom %1 is a direct foreign dependency, ' .. + 'atom %1 is an indirect foreign dependency, ' .. 'register dependency for %2 on %3', a, k, dep) + nchanges = nchanges + 1 end - nchanges = nchanges + 1 end else local rspamd_symbol, replaced_symbol = replace_symbol(a) |