]> source.dussan.org Git - rspamd.git/commitdiff
Fix settings application.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Oct 2015 21:41:18 +0000 (21:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Oct 2015 21:41:59 +0000 (21:41 +0000)
Issue: #416
Reported by: @moisseev

src/plugins/lua/settings.lua

index e29b2d2726ee95030f0acbe78abc7ab5ea1cc25a..71534fa3e0331d336ef201b19626d0a80df65f6c 100644 (file)
@@ -247,7 +247,7 @@ local function check_settings(task)
           rspamd_logger.infox(task, "<%1> apply settings according to rule %2",
             task:get_message_id(), name)
           if rule['apply'] then
-            task:set_settings(rule)
+            task:set_settings(rule['apply'])
           end
           if rule['symbols'] then
             -- Add symbols, specified in the settings