summaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* * Add ability to match raw headersVsevolod Stakhov2009-03-171-0/+6
| | | | * Update documentation
* * Some fixes to regexp moduleVsevolod Stakhov2009-03-121-10/+15
| | | | * Add documentation for rspamd regexp module
* * Remove %m from logging it seems to be unsupported by FreeBSD printf versionVsevolod Stakhov2009-03-021-3/+3
|
* * Fix logging when process is startingVsevolod Stakhov2009-02-261-1/+1
| | | | | * Add -t option for config testing * Try to search default config in install prefix not in current directory
* * Add initial LMTP support and LDA delivery to rspamdVsevolod Stakhov2009-02-241-53/+81
|
* * Prepare to migrate to cmake (still need to write install target and ↵Vsevolod Stakhov2009-02-161-21/+1
| | | | | | | | working with XS implicitly) * Move all system includes to one file where we detect availability of all that includes * Fix license misprint * Fix some issues with perl initializing