From 3a1e6a2f3c41a165d87a92ff397c0f6e062fa3f7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 28 Oct 2018 10:17:34 +0000 Subject: [PATCH] [Minor] Allow to add conditions for bayes symbol --- src/libserver/symbols_cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 1757951114..bbaffa400d 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -912,11 +912,13 @@ rspamd_symbols_cache_add_symbol (struct symbols_cache *cache, */ if (item->type & SYMBOL_TYPE_COMPOSITE) { item->id = cache->composites->len; + item->specific.normal.condition_cb = -1; g_ptr_array_add (cache->composites, item); } else if (item->type & SYMBOL_TYPE_CLASSIFIER) { /* Treat it as virtual */ item->id = cache->virtual->len; + item->specific.normal.condition_cb = -1; g_ptr_array_add (cache->virtual, item); } else { -- 2.47.3