aboutsummaryrefslogtreecommitdiffstats
path: root/src/view.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:04:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:04:18 +0100
commitb8f84a8d97210e9a2df04ad4687624a30d62a1a4 (patch)
treec416209dcbcda6422e17caff4c6dbb6f450efa35 /src/view.h
parentb9a379e9d6b05b0f558ad052389fdb5384b189a8 (diff)
downloadrspamd-b8f84a8d97210e9a2df04ad4687624a30d62a1a4.tar.gz
rspamd-b8f84a8d97210e9a2df04ad4687624a30d62a1a4.zip
Deprecate views: never ever being used.
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h95
1 files changed, 0 insertions, 95 deletions
diff --git a/src/view.h b/src/view.h
deleted file mode 100644
index ecefa83cb..000000000
--- a/src/view.h
+++ /dev/null
@@ -1,95 +0,0 @@
-/** @file view.h **/
-
-#ifndef RSPAMD_VIEW_H
-#define RSPAMD_VIEW_H
-
-#include "config.h"
-#include "main.h"
-#include "radix.h"
-
-struct config_file;
-struct rspamd_view {
- struct config_file *cfg;
- GList *from_re_list;
- GHashTable *from_hash;
-
- GList *rcpt_re_list;
- GHashTable *rcpt_hash;
-
- radix_tree_t *ip_tree;
- radix_tree_t *client_ip_tree;
-
- GHashTable *symbols_hash;
- GList *symbols_re_list;
- gboolean skip_check;
-
- rspamd_mempool_t *pool;
-};
-
-
-/**
- * Init a new view
- * @param pool pool for view
- * @return
- */
-struct rspamd_view* init_view (struct config_file *cfg, rspamd_mempool_t *pool);
-
-/**
- * Add from option for this view
- * @param view view
- * @param line from line for this view
- * @return
- */
-gboolean add_view_from (struct rspamd_view *view, const gchar *line);
-
-
-/**
- * Add recipient for this view
- * @param view view object
- * @param line recipient description
- * @return
- */
-gboolean add_view_rcpt (struct rspamd_view *view, const gchar *line);
-
-/**
- * Add ip option for this view
- * @param view view object
- * @param line ip description
- * @return
- */
-gboolean add_view_ip (struct rspamd_view *view, const gchar *line);
-
-/**
- * Add client ip option for this view
- * @param view view object
- * @param line ip description
- * @return
- */
-gboolean add_view_client_ip (struct rspamd_view *view, const gchar *line);
-
-/**
- * Add symbols option for this view
- * @param view view object
- * @param line symbols description
- * @return
- */
-gboolean add_view_symbols (struct rspamd_view *view, const gchar *line);
-
-/**
- * Check view for this task for specified symbol
- * @param views list of defined views
- * @param symbol symbol to check
- * @param task task object
- * @return whether to check this symbol for this task
- */
-gboolean check_view (GList *views, const gchar *symbol, struct rspamd_task *task);
-
-/**
- * Check whether this task should be skipped from checks
- * @param views list of defined views
- * @param task task object
- * @return
- */
-gboolean check_skip (GList *views, struct rspamd_task *task);
-
-#endif