From eed1024a310c65ffbe7b8588a0f3c962183ec6ce Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 5 Nov 2016 22:52:45 +0100 Subject: [PATCH] [Feature] Allow conditions for pre and postfilters --- src/libserver/symbols_cache.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 68b4ffa84..d5fdcb947 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -752,13 +752,6 @@ rspamd_symbols_cache_add_condition (struct symbols_cache *cache, gint id, item = g_ptr_array_index (cache->items_by_id, id); - if (item->type & (SYMBOL_TYPE_POSTFILTER|SYMBOL_TYPE_PREFILTER)) { - msg_err_cache ("conditions are not supported for prefilters and " - "postfilters %s", item->symbol); - - return FALSE; - } - if (item->condition_cb != -1) { /* We already have a condition, so we need to remove old cbref first */ msg_warn_cache ("rewriting condition for symbol %s", item->symbol); -- 2.39.5