diff options
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; +} |