summaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow multiply statfiles with a same label.Vsevolod Stakhov2012-10-021-1/+1
|
* * Add dynamic configuration dumping.Vsevolod Stakhov2012-10-011-0/+4
| | | | | | * Add labels support to the statfiles (would be used for meta-classification) * Rewrite exim spam.c patch to work with both rspamd and SA by using 'variant=rspamd' option in spam_server line.
* * Add map_watch_interval configurable.Vsevolod Stakhov2012-09-191-3/+3
| | | | Support floating point values for time intervals.
* Avoid global variables in map logic.Vsevolod Stakhov2012-09-191-0/+5
| | | | * Add support of simple maps like '/path/to/file' as it seems to be more comfortable than 'file:///...'
* Another debian license fix.Vsevolod Stakhov2012-09-101-1/+1
| | | | | Add apache license for regexp that were delivered from SpamAssassin project. Fix debian/copyright for src/dns.c.
* Update copyright (required by debian).Vsevolod Stakhov2012-09-041-3/+3
|
* * DKIM module now check only first signature as others must be rejected or ↵Vsevolod Stakhov2012-06-051-13/+35
| | | | | | | skipped by definition. * Add 'trusted_only' and 'skip_multi' options to DKIM module. * Improve flags parsing to support strings like: 'true', 'false', '1', '0', 'yes', 'no', 'y', 'n'.
* Parse big limits on 32 bits machine (for file sizes).Vsevolod Stakhov2012-03-281-3/+3
|
* * Add lua bindings for upstream API.Vsevolod Stakhov2012-03-261-13/+45
|
* Use DB_HASH access method for bdb backend.Vsevolod Stakhov2012-03-011-1/+1
| | | | Fix signed and unsigned comparasion while I'm here.
* * Introduce new system of worker's and modules initialization:Vsevolod Stakhov2012-01-161-4/+6
| | | | | | | | - Removed legacy limitation of worker's types; - Using GQuarks to identify workers and modules; - Remove modules.sh script; - Add a common system of workers and modules; - Write management and configuration for new architecture.
* More cleanups and fixes for compiler warnings.0.4.6Vsevolod Stakhov2011-12-201-1/+1
|
* * Add <fsync> option to turn on explicit fsync for file backend.Vsevolod Stakhov2011-11-241-4/+4
|
* Fix static build.Vsevolod Stakhov2011-11-111-1/+1
|
* * Implement basic functionality of key value storageVsevolod Stakhov2011-10-311-0/+2
|
* * Add configuration utils for kvstorageVsevolod Stakhov2011-10-171-5/+6
|
* Fix signness in arithmetic operations.Vsevolod Stakhov2011-08-041-1/+1
|
* * Fix build under CentOS 5 with old glib 2.12Vsevolod Stakhov2011-07-291-1/+1
| | | | | * Fix build of rspamd with CMAKE_BINARY_DIR differs from CMAKE_SOURCE_DIR Rework include style.
* Fix statfiles class determination euristic.Vsevolod Stakhov2011-07-181-3/+3
| | | | Fix call of classifier pre-callback.
* * Add new algorithm based on diff algorithm to compare relatively short text ↵Vsevolod Stakhov2011-07-131-0/+3
| | | | parts
* Add validity detector for statfiles inside classifier.Vsevolod Stakhov2011-07-131-0/+56
| | | | Add euristic to detect spam/ham classes based on statfile symbol.
* * First commit to implement multi-statfile filter system with new learning ↵Vsevolod Stakhov2011-07-121-1/+39
| | | | mechanizm (untested yet)
* * Welcome 0.4.0Vsevolod Stakhov2011-06-241-0/+3
| | | | | | | | | | | | | | | | | | Uncompatible changes: - Statistics is uncompatible in utf8 mode Major changes: - Improved utf8 mode - Convert all characters to lowercase in statistics - Skip URL's in statistics - Improve speed of bayes classifier by using integer arithmetics - Fixed statfiles synchronization that was broken for a long time - Synchronization is now configurable Minor changes: - Bugfixes - Removed some of legacy code - Types polishing
* * Rework build process:Vsevolod Stakhov2011-05-101-4/+6
| | | | | | | | | | - add librspamdserver - link this library to all daemons and utils of rspamd - use subdirectories more often * Rework global variables logic - move them to the main process * Fix logging to handle utf-8 correctly * Add statshow utility and make it working * Move printf functions to separate source file
* * Add throttling detection mechanic for dns resolverVsevolod Stakhov2011-03-231-1/+3
| | | | * Improve phishing module adding ability to define 'strict' phishing domains
* * Add ability to add descriptions for symbolsVsevolod Stakhov2011-02-151-0/+2
|
* * Introduce new system of configuration checks:Vsevolod Stakhov2010-12-201-0/+14
| | | | | | | | - now symbols inside metrics definition must be inside rules as well - symbols may be virtual (e.g. when module can insert several symbols inside callback) - symbols may be pure callbacks (when symbol's name is unknown and depends on conditions) * Module 'emails' is removed as it is not used in the current rspamd MANY fixes to sample config files
* * Implement ability to add conditional rules to rspamd.xmlVsevolod Stakhov2010-12-151-0/+6
|
* Implement checking options for modulesVsevolod Stakhov2010-12-131-5/+43
| | | | | | Implement checking for classifier options Fix redirector to handle timeouts and invalid replies properly Fix surbl module not to check each url
* Add module options checkerVsevolod Stakhov2010-12-081-10/+90
| | | | | Improve time limits handling Fix smtp proxy options parsing
* Make own strlcpy that does not calculate remaining string length (faster and ↵Vsevolod Stakhov2010-11-161-4/+4
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* Fixes bugs found with clang-static analyser.Vsevolod Stakhov2010-10-111-11/+7
| | | | | Strictly follow c99 standart. Turn on pedantic c99 checks.
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-16/+16
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * More debugVsevolod Stakhov2010-07-251-2/+2
|
* * Add resolv.conf parsing into dns.cVsevolod Stakhov2010-07-011-0/+3
| | | | * Fix microseconds<->milliseconds conversions
* * Rewrite buffered input for line policy (again)Vsevolod Stakhov2010-06-221-3/+11
| | | | | | | | * Fix issue with links that are ip addresses in numeric form in surbl * On Darwin use BSD style sendfile definition * Reorganize platform specific knobs in CMakeLists * Use gettimeofday on systems that have not clock_getres * Use ftime for dns trans id generation on systems without clock_getres
* * Change metric logicVsevolod Stakhov2010-06-161-44/+27
| | | | | | | * Completely remove lex/yacc readers for config * Make common sense of metric/action and symbols * Sync changes with all plugins TODO: add this to documentation
* * Fix strict aliasing while compiling with optimizationVsevolod Stakhov2010-05-311-0/+8
| | | | | * Fix tanhl detection for platforms that have not implementation of it * Remove several compile warnings
* * Convert statistic sums to use long double for countersVsevolod Stakhov2010-05-271-14/+5
| | | | * Use hyperbolic tangent for internal normalizer
* * Bugfixes:Vsevolod Stakhov2010-04-201-1/+1
| | | | | | | | | | - handle '\' characters in lua strings correctly - fix lua initialization - avoid of using global lua state (global L) - fix listen sockets hash to allow multiply workers of same type but on different listen sockets - fix modules options inserting to allow multiply options of the same name - fix parsing of lua options - fix lua rules
* * Wellcome to the XML worldVsevolod Stakhov2010-04-071-1/+1
|
* * Add initial version of lua configuration systemVsevolod Stakhov2010-04-051-2/+29
|
* * Add dumper to XML file (not all sections yet)Vsevolod Stakhov2010-04-011-1/+35
| | | | | | | | * Add checksum to config files * Some config parsing reorganizations: - post_load_config should be called after xml initialization - xml state machine is corrected to read main section variables - some linting is added to xml (checking of elements parity)
* * New syntax parser that should make syntax check of XML configsVsevolod Stakhov2010-03-271-38/+38
| | | | | | | | * Rework of config structure types (use glib types) * TODO: - implement the whole syntax of rspamd in XML - implement custom handlers that modules can install - write missing handlers
* * Initial add of xml parser for rspamd configurationVsevolod Stakhov2010-03-251-1/+50
|
* * Fix misprintcebka@lenovo-laptop2010-01-141-1/+1
|
* * Add ability to add normalizers for statfiles (custom functions written in ↵cebka@lenovo-laptop2010-01-131-0/+107
| | | | lua or simple internal normalizer)
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-4/+4
| | | | | | | | | - independent and customizeable buffering - line buffering - errors handling support - custom (ip based) debug - append function name automaticaly (based on __FUNCTION__) - add some logic to logs system
* * Add limits support to each worker (max open files and max core size)Vsevolod Stakhov2009-12-181-0/+5
| | | | * Fix dependency on lex and yacc sources
* * Fix parsing '*' as hostname in bind linesVsevolod Stakhov2009-11-101-6/+12
|