* Use HTTP protocol for all operatiosn * Webui worker is now removed and controller works as webui * Allow to serve static files via controller by option `static_dir` * Rspamd interface is now a part of rspamd * Rspamc client has been rewritten to use HTTP and non-blocking mode allowing to start multiple operations simultaneously (see `-n` option) * Lua API was completely reworked to satisfy modern standards of LUA: * Module `lua-message` was removed * Reduced number of superglobals registered by rspamd * Many functions has been redesigned * Symbols registration is now more convenient * Users settings has been rewritten as lua plugin * Reworked headers system as gmime's based one misses many headers and is very slow to get headers values * Reorganized code and removed embedded jannsson by using UCL for all json parsing * Migrated to `librdns` for DNS resolving that improves concurrency for DNS requests significantly * Fixed tonns of bugs in MIME processing * Improved metrcis and default symbol's weights * Added new RBL's * Fixed a number of issues in the modules * Removed several memory leaks found * Fix unicode processing * Fix fuzzy checking for unicode parts * Significantly improve documentation and especially LUA API docs * See migration notes at https://rspamd.com/doc/migration.html Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>tags/0.7.0
@@ -103,7 +103,6 @@ TARGET_LINK_LIBRARIES(rspamd rspamd-mime) | |||
TARGET_LINK_LIBRARIES(rspamd rspamd-server) | |||
TARGET_LINK_LIBRARIES(rspamd rspamd-util) | |||
TARGET_LINK_LIBRARIES(rspamd rspamd-lua) | |||
ADD_PRECOMPILED_HEADER(rspamd "${CMAKE_BINARY_DIR}/src/config.h") | |||
TARGET_LINK_LIBRARIES(rspamd event) | |||
IF(HAVE_LIBEVENT2) |
@@ -7,8 +7,6 @@ ELSE(NO_SHARED MATCHES "OFF") | |||
ADD_LIBRARY(rspamdclient STATIC ${LIBRSPAMDCLIENTSRC}) | |||
ENDIF(NO_SHARED MATCHES "OFF") | |||
ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDCLIENTSRC}) | |||
ADD_PRECOMPILED_HEADER(rspamdclient_static "${CMAKE_BINARY_DIR}/src/config.h") | |||
ADD_PRECOMPILED_HEADER(rspamdclient "${CMAKE_BINARY_DIR}/src/config.h") | |||
SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fPIC") | |||
SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fPIC") | |||
@@ -31,7 +29,6 @@ ENDIF(NO_SHARED MATCHES "OFF") | |||
SET(RSPAMCSRC rspamc.c) | |||
ADD_EXECUTABLE(rspamc ${RSPAMCSRC}) | |||
ADD_PRECOMPILED_HEADER(rspamc "${CMAKE_BINARY_DIR}/src/config.h") | |||
SET_TARGET_PROPERTIES(rspamc PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/lib") | |||
TARGET_LINK_LIBRARIES(rspamc rspamd-util) | |||
IF(ENABLE_STATIC MATCHES "ON") |
@@ -19,7 +19,6 @@ TARGET_LINK_LIBRARIES(rspamd-mime rspamd-util) | |||
IF(CMAKE_COMPILER_IS_GNUCC) | |||
SET_TARGET_PROPERTIES(rspamd-mime PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing") | |||
ENDIF(CMAKE_COMPILER_IS_GNUCC) | |||
ADD_PRECOMPILED_HEADER(rspamd-mime "${CMAKE_BINARY_DIR}/src/config.h") | |||
IF(NO_SHARED MATCHES "OFF") | |||
INSTALL(TARGETS rspamd-mime |
@@ -37,7 +37,6 @@ SET(CLASSIFIERSSRC ../classifiers/classifiers.c | |||
#ENDIF(WITH_SQLITE) | |||
ADD_LIBRARY(rspamd-server ${LINK_TYPE} ${LIBRSPAMDSERVERSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC}) | |||
ADD_PRECOMPILED_HEADER(rspamd-server "${CMAKE_BINARY_DIR}/src/config.h") | |||
IF(NOT DEBIAN_BUILD) | |||
SET_TARGET_PROPERTIES(rspamd-server PROPERTIES VERSION ${RSPAMD_VERSION}) | |||
ENDIF(NOT DEBIAN_BUILD) |
@@ -21,7 +21,6 @@ IF(CMAKE_COMPILER_IS_GNUCC) | |||
SET_TARGET_PROPERTIES(rspamd-util PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") | |||
ENDIF(CMAKE_COMPILER_IS_GNUCC) | |||
ADD_PRECOMPILED_HEADER(rspamd-util "${CMAKE_BINARY_DIR}/src/config.h") | |||
TARGET_LINK_LIBRARIES(rspamd-util ${RSPAMD_REQUIRED_LIBRARIES}) | |||
TARGET_LINK_LIBRARIES(rspamd-util pcre) | |||
TARGET_LINK_LIBRARIES(rspamd-util ucl) |
@@ -18,7 +18,6 @@ SET(LUASRC lua_common.c | |||
lua_ip.c) | |||
ADD_LIBRARY(rspamd-lua ${LINK_TYPE} ${LUASRC}) | |||
ADD_PRECOMPILED_HEADER(rspamd-lua "${CMAKE_BINARY_DIR}/src/config.h") | |||
SET_TARGET_PROPERTIES(rspamd-lua PROPERTIES VERSION ${RSPAMD_VERSION}) | |||
TARGET_LINK_LIBRARIES(rspamd-lua rspamd-util) | |||
TARGET_LINK_LIBRARIES(rspamd-lua hiredis) |