]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Allow conditions for pre and postfilters
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 5 Nov 2016 21:52:45 +0000 (22:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 5 Nov 2016 21:52:45 +0000 (22:52 +0100)
src/libserver/symbols_cache.c

index 68b4ffa84f3872925185a3509a9d8d33a6731182..d5fdcb94715a8bca8f0b09b03f53a998a7dc3526 100644 (file)
@@ -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);