]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rename method name
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Jul 2019 12:40:40 +0000 (13:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Jul 2019 12:40:40 +0000 (13:40 +0100)
conf/statistic.conf
lualib/lua_bayes_learn.lua

index bb76853ca9f7f1ed5080d11df55cba2ab6ea765a..1e78c73cd17775115f1d742cb946d85660f77497 100644 (file)
@@ -41,7 +41,7 @@ classifier "bayes" {
     symbol = "BAYES_SPAM";
     spam = true;
   }
-  learn_condition = "return require("lua_bayes_learn").autolearn"
+  learn_condition = "return require("lua_bayes_learn").can_learn"
 
   .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/classifier-bayes.conf"
   .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/classifier-bayes.conf"
index 70cbb96c04d11fa80a68850b0605721f6ebea9f5..7df52a2ef90063c0fa5cf2b59a7a72aac58fb32e 100644 (file)
@@ -18,7 +18,7 @@ limitations under the License.
 
 local exports = {}
 
-exports.autolearn = function(task, is_spam, is_unlearn)
+exports.can_learn = function(task, is_spam, is_unlearn)
   local learn_type = task:get_request_header('Learn-Type')
 
   if not (learn_type and tostring(learn_type) == 'bulk') then