From: Vsevolod Stakhov Date: Sat, 5 Nov 2016 21:52:45 +0000 (+0100) Subject: [Feature] Allow conditions for pre and postfilters X-Git-Tag: 1.4.0~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eed1024a310c65ffbe7b8588a0f3c962183ec6ce;p=thirdparty%2Frspamd.git [Feature] Allow conditions for pre and postfilters --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 68b4ffa84f..d5fdcb9471 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);