diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-19 20:35:27 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-19 20:35:27 +0400 |
commit | 966ffa12854e46ede0e1fe67fa5d02345b6e99a0 (patch) | |
tree | 377f3c79bab3ce1166797d6514776639aa47456d /src/view.c | |
parent | f2fa5e52e91742bcb3111f154ead19fa2f9cf830 (diff) | |
download | rspamd-966ffa12854e46ede0e1fe67fa5d02345b6e99a0.tar.gz rspamd-966ffa12854e46ede0e1fe67fa5d02345b6e99a0.zip |
* Do not really check messages that should be skipped
* Add Skip state for such messages (not False and not True)
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/view.c b/src/view.c index 393882049..0f9aefcf7 100644 --- a/src/view.c +++ b/src/view.c @@ -163,6 +163,10 @@ match_view_symbol (struct rspamd_view *v, const char *symbol) GList *cur; struct rspamd_regexp *re; + /* Special case */ + if (symbol == NULL) { + return TRUE; + } /* First try to lookup in hashtable */ if (g_hash_table_lookup (v->symbols_hash, symbol) != NULL) { return TRUE; @@ -218,3 +222,12 @@ check_view (GList * views, const char *symbol, struct worker_task * task) return FALSE; } + +gboolean +check_skip (GList * views, struct worker_task * task) +{ + if (check_view (views, NULL, task) == FALSE) { + return TRUE; + } + return FALSE; +} |