aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * Avoid mmap'ing in binlog as mmapped areas must be alignedVsevolod Stakhov2009-11-091-66/+67
| | | | | * Make binlog working for writing * Add config params for binlog
* * Implement new system of managing rspamd processesVsevolod Stakhov2009-10-301-0/+18
|
* * Add growing coefficient to factors consolidation callbackVsevolod Stakhov2009-10-161-0/+1
| | | | * Fix registering functions from lua
* * Add reject score setting for hard rejecting of mail (by Anton Nekhoroshin)Vsevolod Stakhov2009-10-021-0/+1
| | | | * Add rspamc protocol 1.1 (3 marks instead of 2)
* * Retab, no functional changesVsevolod Stakhov2009-10-021-125/+128
|
* * New system of classifiers interface and statfiles processingVsevolod Stakhov2009-09-141-3/+17
| | | | | | | * Fix sample config * Fix compile warnings * Fix building without lua support * Fix bugs with nrcpt header parsing and symbols cache loading (by Anton Nekhoroshikh)
* * Make settings workingVsevolod Stakhov2009-09-081-0/+2
|
* * Add client part for fuzzy checksums storageVsevolod Stakhov2009-07-281-0/+15
| | | | * Add fuzzy storage syncing to file
* * Fix some more bugsVsevolod Stakhov2009-07-231-0/+1
|
* * Make modules disableable from configVsevolod Stakhov2009-07-231-0/+1
|
* * Fix symbol planning, add cache_file directive to config fileVsevolod Stakhov2009-07-141-9/+13
| | | | * Fix some errors
* * Rework the whole filters systemVsevolod Stakhov2009-07-131-41/+8
| | | | | | | * Add metrics optimization and symbols cache * Change all plugins [DRAGONS]: not for production usage, some things are still not working!
* * Add autolearn config optionsVsevolod Stakhov2009-07-031-0/+28
| | | | | * Fix parsing of invalid urls in html parser * Add ability to specify symbols in view parameter as comma-separated list
* * Introduce new system of workers spawning and configuring, now rspamd can ↵Vsevolod Stakhov2009-06-171-85/+35
| | | | | | | be easily extended by new types of wrokers * Rework config system and avoid from using queue (3) lists * Upgrade version to 0.2.0 as config format is now incompatible with older one
* * Allow binds to INADDR_ANY if bind_sock is *:portVsevolod Stakhov2009-04-291-2/+4
|
* * Fix variables substitutionVsevolod Stakhov2009-04-221-8/+13
|
* * Thread variables as () expressions to fix problems with operations priorityVsevolod Stakhov2009-04-211-2/+2
|
* * Fix variables substitutionVsevolod Stakhov2009-03-271-8/+10
| | | | | * Add simple lua interface to access task structures * Improve error reporting for regexp module
* * Add ability to build rspamd without perl supportVsevolod Stakhov2009-03-271-0/+1
| | | | | * Fix creating of uinx socket * Improve some build issues
* * More accurate work with clockVsevolod Stakhov2009-03-251-0/+18
|
* * Fix variable substitutionVsevolod Stakhov2009-03-241-3/+5
| | | | * Add new command line parameter '-V' allowing to dump all variables of rspamd
* * Fix error in expression parser that causes bad errors with expressions ↵Vsevolod Stakhov2009-03-231-0/+5
| | | | | | | | | | | | that have regexp at the end * Improve test for fuzzy hashes * Add new object - TextPart to perl XS library that allows access to stripped parts and fuzzy hashes * Add documentation for expressions parser and fot Mail::Rspamd::TextPart * Allways calculate fuzzy hash for text parts * Store text parts separately from other parts * Add compare_parts_distance for expressions that calculates difference in 2 parts messages * Do not try to substitute variables in empty strings
* * Add functions support to rspamd regexpsVsevolod Stakhov2009-03-191-137/+0
| | | | | | | | * Parse expressions with state machine which allows different kinds of arguments in expressions * Fix test to accord current data * Add support of fucntions to regexp module * Move all regexp logic to separate file, describe its API * Fix descriptors leakage in surbl module
* * With flag -t syntax of modules variables is also inspectedVsevolod Stakhov2009-03-191-4/+5
| | | | * Set "C" locale on start to avoid some troubles with logging
* * Allow escaped quotes in quoted strings, for example "\"some string\""Vsevolod Stakhov2009-03-181-0/+24
| | | | * Add warnings when we got errors while parsing rexeps