aboutsummaryrefslogtreecommitdiffstats
path: root/src/settings.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 16:25:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 16:25:51 +0100
commit61555065f3d1c8badcc9573691232f1b6e42988c (patch)
tree563d5b7cb8c468530f7e79c4da0a75267b1184e1 /src/settings.h
parentad5bf825b7f33bc10311673991f0cc888e69c0b1 (diff)
downloadrspamd-61555065f3d1c8badcc9573691232f1b6e42988c.tar.gz
rspamd-61555065f3d1c8badcc9573691232f1b6e42988c.zip
Rework project structure, remove trash files.
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/settings.h b/src/settings.h
deleted file mode 100644
index 361700094..000000000
--- a/src/settings.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef RSPAMD_SETTINGS_H
-#define RSPAMD_SETTINGS_H
-
-#include "config.h"
-#include "main.h"
-
-struct rspamd_settings {
- GHashTable *metric_scores; /**< hash table of metric require scores for this setting */
- GHashTable *reject_scores; /**< hash table of metric reject scores for this setting */
- GHashTable *metric_actions; /**< hash table of metric actions for this setting */
- GHashTable *factors; /**< hash table of new factors for this setting */
- GHashTable *whitelist; /**< hash table of whitelist for this setting */
- GHashTable *blacklist; /**< hash table of whitelist for this setting */
- gchar *statfile_alias; /**< alias for statfile used */
- gboolean want_spam; /**< if true disable rspamd checks */
- gint ref_count; /**< reference counter */
-};
-
-
-/*
- * Read settings from specified path
- */
-gboolean read_settings (const gchar *path, const gchar *description, struct config_file *cfg, GHashTable *table);
-
-/*
- * Init configuration structures for settings
- */
-void init_settings (struct config_file *cfg);
-
-/*
- * Check scores settings
- */
-gboolean check_metric_settings (struct metric_result *res, double *score, double *rscore);
-
-/*
- * Check actions settings
- */
-gboolean check_metric_action_settings (struct rspamd_task *task, struct metric_result *res, double score, enum rspamd_metric_action *result);
-
-/*
- * Check individual weights for settings
- */
-gboolean check_factor_settings (struct metric_result *res, const gchar *symbol, double *factor);
-
-/*
- * Check want_spam flag
- */
-gboolean check_want_spam (struct rspamd_task *task);
-
-/*
- * Search settings for metric and store pointers to settings into metric_result structure
- */
-gboolean apply_metric_settings (struct rspamd_task *task, struct metric *metric, struct metric_result *res);
-
-#endif