#include "config.h"
-#include "util.h"
-#include "main.h"
-#include "http.h"
-#include "message.h"
-#include "protocol.h"
-#include "upstream.h"
-#include "cfg_file.h"
-#include "map.h"
-#include "dns.h"
#include "tokenizers/tokenizers.h"
#include "classifiers/classifiers.h"
-#include "dynamic_cfg.h"
-#include "rrd.h"
+#include "libserver/dynamic_cfg.h"
+#include "libutil/rrd.h"
+#include "libutil/map.h"
+#include "main.h"
#ifdef WITH_GPERF_TOOLS
# include <glib/gprintf.h>
#define RSPAMD_SMTP_PROTO_H
#include "config.h"
-#include "smtp.h"
/* SMTP errors */
#define SMTP_ERROR_BAD_COMMAND "500 Syntax error, command unrecognized" CRLF
#define SMTP_UTILS_H_
#include "config.h"
-#include "main.h"
-#include "smtp.h"
/**
* @file smtp_utils.h
#include "config.h"
#ifdef WITH_LUA
-#include "main.h"
-#include "cfg_file.h"
-#include "ucl.h"
-#include "lua_ucl.h"
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
+#include "main.h"
+#include "ucl.h"
+#include "lua_ucl.h"
+
#ifndef lua_open
#define lua_open() luaL_newstate ()
#endif
#include "config.h"
#include "main.h"
-#include "cfg_file.h"
-#include "util.h"
#include "lmtp.h"
#include "smtp.h"
-#include "map.h"
+#include "libutil/map.h"
#include "fuzzy_storage.h"
#include "kvstorage_server.h"
-#include "symbols_cache.h"
+#include "libserver/symbols_cache.h"
#include "lua/lua_common.h"
#include "ottery.h"
#include "xxhash.h"
#define RSPAMD_MAIN_H
#include "config.h"
-#include "fstring.h"
-#include "mem_pool.h"
-#include "statfile.h"
-#include "url.h"
-#include "protocol.h"
-#include "filter.h"
-#include "buffer.h"
-#include "events.h"
-#include "util.h"
-#include "logger.h"
-#include "roll_history.h"
-#include "http.h"
-#include "task.h"
-#include "worker_util.h"
+#include "libutil/fstring.h"
+#include "libutil/mem_pool.h"
+#include "libutil/util.h"
+#include "libutil/logger.h"
+#include "libutil/http.h"
+#include "libutil/upstream.h"
+#include "libserver/statfile.h"
+#include "libserver/url.h"
+#include "libserver/protocol.h"
+#include "libserver/buffer.h"
+#include "libserver/events.h"
+#include "libserver/roll_history.h"
+#include "libserver/task.h"
+#include "libserver/worker_util.h"
+#include "libmime/filter.h"
+
/* Default values */
#define FIXED_CONFIG_FILE RSPAMD_CONFDIR "/rspamd.conf"
*/
#include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
#define DEFAULT_SYMBOL "R_CHARSET_MIXED"
#define DEFAULT_THRESHOLD 0.1
*/
#include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libserver/dkim.h"
+#include "libutil/hash.h"
+#include "libutil/map.h"
#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "dkim.h"
-#include "hash.h"
#define DEFAULT_SYMBOL_REJECT "R_DKIM_REJECT"
#define DEFAULT_SYMBOL_TEMPFAIL "R_DKIM_TEMPFAIL"
*/
#include "config.h"
-#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "images.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libutil/map.h"
+#include "libmime/images.h"
#include "fuzzy_storage.h"
#include "utlist.h"
+#include "main.h"
#define DEFAULT_SYMBOL "R_FUZZY_HASH"
#define DEFAULT_UPSTREAM_ERROR_TIME 10
#include "config.h"
-#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "map.h"
-#include "util.h"
-#include "expressions.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libutil/map.h"
#include "lua/lua_common.h"
+#include "main.h"
#define DEFAULT_STATFILE_PREFIX "./"
*/
#include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libserver/spf.h"
+#include "libutil/hash.h"
+#include "libutil/map.h"
#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "spf.h"
-#include "hash.h"
#define DEFAULT_SYMBOL_FAIL "R_SPF_FAIL"
#define DEFAULT_SYMBOL_SOFTFAIL "R_SPF_SOFTFAIL"
*/
#include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libutil/hash.h"
+#include "libutil/map.h"
#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "dns.h"
-#include "hash.h"
-#include "utlist.h"
-
#include "surbl.h"
+#include "utlist.h"
+
static struct surbl_ctx *surbl_module_ctx = NULL;
static void surbl_test_url (struct rspamd_task *task, void *user_data);
#define RSPAMD_MODULE_SURBL
#include "config.h"
+#include "libutil/trie.h"
#include "main.h"
-#include "cfg_file.h"
-#include "trie.h"
#define DEFAULT_REDIRECTOR_PORT 8080
#define DEFAULT_SURBL_WEIGHT 10
#define RSPAMD_SMTP_H
#include "config.h"
+#include "libutil/upstream.h"
+#include "libmime/smtp_utils.h"
+#include "libmime/smtp_proto.h"
#include "main.h"
-#include "upstream.h"
-#include "smtp_utils.h"
struct rspamd_dns_resolver;
*/
#include "config.h"
-#include "main.h"
-#include "cfg_file.h"
-#include "util.h"
-#include "smtp_proto.h"
-#include "map.h"
-#include "message.h"
-#include "dns.h"
-#include "upstream.h"
-#include "proxy.h"
#include "utlist.h"
+#include "libserver/proxy.h"
+#include "main.h"
+#include "smtp.h"
/*
* SMTP proxy is a simple smtp proxy worker for dns resolving and
*/
#include "config.h"
-#include "util.h"
+#include "libutil/util.h"
+#include "libutil/map.h"
+#include "libutil/upstream.h"
+#include "libserver/protocol.h"
+#include "libserver/cfg_file.h"
+#include "libserver/url.h"
+#include "libserver/dns.h"
+#include "libmime/message.h"
#include "main.h"
-#include "protocol.h"
-#include "upstream.h"
-#include "cfg_file.h"
-#include "url.h"
-#include "message.h"
-#include "map.h"
-#include "dns.h"
#include "lua/lua_common.h"