summaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Add an emitter from rcl object to lua.Vsevolod Stakhov2013-10-021-85/+8
|
* Allow multiply bind configurations.Vsevolod Stakhov2013-09-161-20/+14
|
* Refactor metric actions handling.Vsevolod Stakhov2013-09-131-3/+5
| | | | | | Use array of actions instead of a linked list to speed up processing. * Removed required_score, reject_score and action in metric config, now REJECT is the only default action for a metric.
* Fixes #45 issue by the proper parsing of a unix socket address.Vsevolod Stakhov2013-08-081-0/+1
|
* Remove broken line.Vsevolod Stakhov2013-06-061-1/+0
|
* Fix wildcard addresses in config.Vsevolod Stakhov2013-06-031-2/+8
|
* Rework socket creation logic to support both ipv4 and ipv6 sockets.Vsevolod Stakhov2013-06-011-20/+46
|
* Add support for meta options for modules.Vsevolod Stakhov2013-05-301-0/+2
| | | | | This is preliminary patch that enables meta options for modules which would simplify complex options passing.
* Add /maps and /getmap commands to webui.Vsevolod Stakhov2013-01-061-0/+6
| | | | | | Identify maps by id. Initialize secure random numbers using openssl. Add description to maps.
* * Add symbols command for webui.Vsevolod Stakhov2013-01-061-0/+16
|
* Fix test build and shlibs depends.Vsevolod Stakhov2012-12-151-51/+0
|
* * Use murmur hash for all hashes as it is more efficient and provides more ↵Vsevolod Stakhov2012-10-081-14/+14
| | | | | | uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification.
* * Add support for dynamic configuration to the controller's interface.Vsevolod Stakhov2012-10-021-0/+2
| | | | | * File maps are now being watched even if they don't exist on rspamd start. Several fixes to dynamic configuration logic.
* 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