aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-26 17:50:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-26 17:50:13 +0400
commit971bad45c44cf430bde13faede56699ba0381e83 (patch)
treed82e66c29b32430ea39729bc3fa8e478ddd14e50 /src/filter.c
parent5b9251914c25fa6559e5680f03d7efddad9af736 (diff)
downloadrspamd-971bad45c44cf430bde13faede56699ba0381e83.tar.gz
rspamd-971bad45c44cf430bde13faede56699ba0381e83.zip
* Add ability to pass all filters by using flag -p in case of rspamc or adding header Pass: all in rspamc protocol
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c8
1 files changed, 6 insertions, 2 deletions
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);