summaryrefslogtreecommitdiffstats
path: root/src/settings.h
blob: 8d2214ae199c1b862917d7b4e26c69f23eb66dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef RSPAMD_SETTINGS_H
#define RSPAMD_SETTINGS_H

#include "config.h"
#include "main.h"

struct rspamd_settings {
	GHashTable *metric_scores;			/**< hash table of metric scores for this setting		*/
	GHashTable *factors;				/**< hash table of new factors for this setting			*/
	char *statfile_alias;				/**< alias for statfile used							*/
	gboolean want_spam;					/**< if true disable rspamd checks						*/
};


int read_settings (const char *path, struct config_file *cfg, GHashTable *table);

#endif