aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-05 22:52:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-05 22:52:45 +0100
commiteed1024a310c65ffbe7b8588a0f3c962183ec6ce (patch)
tree493e871a08633c40af34b9d4529fbf61bda39145 /src
parent5eb00bd1b49028f9f5591572108b4bb104e56ebb (diff)
downloadrspamd-eed1024a310c65ffbe7b8588a0f3c962183ec6ce.tar.gz
rspamd-eed1024a310c65ffbe7b8588a0f3c962183ec6ce.zip
[Feature] Allow conditions for pre and postfilters
Diffstat (limited to 'src')
-rw-r--r--src/libserver/symbols_cache.c7
1 files changed, 0 insertions, 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);