From 971bad45c44cf430bde13faede56699ba0381e83 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Apr 2010 17:50:13 +0400 Subject: * Add ability to pass all filters by using flag -p in case of rspamc or adding header Pass: all in rspamc protocol --- src/filter.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/filter.c') diff --git a/src/filter.c b/src/filter.c index a300820da..e2d6d80b8 100644 --- a/src/filter.c +++ b/src/filter.c @@ -286,7 +286,9 @@ continue_process_filters (struct worker_task *task) return 0; } else if (check_metric_is_spam (task, metric)) { - break; + if (!task->pass_all_filters) { + break; + } } } cur = g_list_next (cur); @@ -337,7 +339,9 @@ process_filters (struct worker_task *task) return 0; } else if (check_metric_is_spam (task, metric)) { - break; + if (!task->pass_all_filters) { + break; + } } } cur = g_list_next (cur); -- cgit v1.2.3