summaryrefslogtreecommitdiffstats
path: root/src/cfg_xml.c
Commit message (Collapse)AuthorAgeFilesLines
* * Add strict priority rulesVsevolod Stakhov2011-03-181-0/+8
| | | | | * Improve and fix multimap module * Add rspamd_config object to stage of early configure of rspamd
* * Add options section into config to organize optionsVsevolod Stakhov2011-02-221-0/+93
| | | | | | | * Add one_shot option for avoiding inserting several results from one rule Fix parsing of headers with \t symbol [1] Reported by: Victor Ustugov [1]
* Fix parsing emails with '_' symbol.Vsevolod Stakhov2011-02-171-1/+3
| | | | Fix adding metric symbol.
* * Add ability to define composites from lua. [1]Vsevolod Stakhov2011-02-161-0/+5
| | | | | | Write to log when lua values override xml ones. [1] [1] Suggested by Victor Ustugov
* * Add ability to add descriptions for symbolsVsevolod Stakhov2011-02-151-1/+8
|
* * Add ability to setup metric's weights from luaVsevolod Stakhov2011-02-141-1/+6
|
* * New module for checking emails inside messages (rules based, like multimap)Vsevolod Stakhov2011-02-031-0/+6
| | | | | | | * Emails now are separated from urls and urls checks * Add ability to check text attachements if option is presented in a configuration Version is 0.3.6 now
* Committed by a mistake.Vsevolod Stakhov2010-12-221-0/+1
|
* Init cache before loading config.Vsevolod Stakhov2010-12-221-1/+0
|
* Register virtual symbols for composites.Vsevolod Stakhov2010-12-221-0/+1
|
* * Introduce new system of configuration checks:Vsevolod Stakhov2010-12-201-13/+13
| | | | | | | | - 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-39/+83
|
* Add registering options for lua modulesVsevolod Stakhov2010-12-141-0/+6
| | | | * Add ability to output colored messages for file and console loggers
* Implement checking options for modulesVsevolod Stakhov2010-12-131-16/+68
| | | | | | 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/+80
| | | | | Improve time limits handling Fix smtp proxy options parsing
* * Start new rspamd 0.3.4Vsevolod Stakhov2010-12-031-44/+208
| | | | * Add ability to manage per-module, per-worker and per-classifier options in XML parser
* Make own strlcpy that does not calculate remaining string length (faster and ↵Vsevolod Stakhov2010-11-161-5/+5
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* * Add ability to recursive scan over multipart's parts for functions:Vsevolod Stakhov2010-10-201-24/+2
| | | | | | | | - content_type_is_type - content_type_is_subtype - content_type_compare_param - content_type_has_param * Add ability to specify any of actions in user's settings, not only reject.
* Remove G_INLINE_FUNC definitions as I misunderstood its purposes.Vsevolod Stakhov2010-10-151-1/+1
|
* Fixes bugs found with clang-static analyser.Vsevolod Stakhov2010-10-111-2/+1
| | | | | Strictly follow c99 standart. Turn on pedantic c99 checks.
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-140/+140
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Remove normalizer as it is winnow specific thing, so all statistic ↵Vsevolod Stakhov2010-08-131-7/+1
| | | | algorithms now returns value from 0 to 1
* * More debugVsevolod Stakhov2010-07-251-1/+1
|
* * Add rspamd_log variable to lua plugins to access logging functionsVsevolod Stakhov2010-07-251-2/+43
| | | | | | | | | * Each part in rspamd task now can have parent part * Check for parts distance only for multipart/alternative subparts * Do not check attachements even if they are text (but attached as file) * Do not die if write (2) returned ENOSPACE while doing logging, turn on throttling mode instead (1 write try in a second) * Add ability to turn on debug for specific symbols * Add ability to configure dns timeouts and dns retransmits in config file
* * Add ability to assign several actions to one metricVsevolod Stakhov2010-07-151-10/+47
| | | | | | * Report action in rspamc protocol * Mail::Rspamd::Client and rspamc can now understand Action header too * Write action to log as well
* * Add ability to set metric's action from config fileVsevolod Stakhov2010-07-151-0/+27
| | | | | * Fix bug with writing garbadge if message has no urls or no messages * Fix bug with incorrect behaviour of compare_parts_distance function
* * Add ability to make views by recipientVsevolod Stakhov2010-07-151-2/+20
|
* * Handle lua tag in way that it is not required to write additional text:Vsevolod Stakhov2010-07-011-2/+18
| | | | | - <lua src="/some/path" /> instead of <lua ...>fake</lua> * Strip all starting whitespace symbols from xml texts
* * Understand short names of facility in logging configVsevolod Stakhov2010-06-301-13/+13
|
* * Use rspamd_snprintf instead of libc oneVsevolod Stakhov2010-06-241-4/+4
|
* * Implement initial version of greylisting triplets storageVsevolod Stakhov2010-06-171-0/+4
| | | | * Fix issues with smtp worker
* * Change metric logicVsevolod Stakhov2010-06-161-96/+44
| | | | | | | * 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 reading views sectionVsevolod Stakhov2010-06-011-0/+1
|
* * Fix strict aliasing while compiling with optimizationVsevolod Stakhov2010-05-311-5/+12
| | | | | * Fix tanhl detection for platforms that have not implementation of it * Remove several compile warnings
* * Continue implementing smtp proxyVsevolod Stakhov2010-05-261-0/+7
|
* * Fix parsing of metric sectioncebka2010-05-141-0/+1
|
* * Dump grow factor to XMLVsevolod Stakhov2010-05-131-0/+12
| | | | | * Insert classifiers parsed from xml config to config object * Fix reinitializing of lua filters
* * Bugfixes:Vsevolod Stakhov2010-04-201-12/+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
* * Add lua config for most common rulesVsevolod Stakhov2010-04-131-5/+36
| | | | * Reset lua state while reloading
* * Handle and dump factors correctlyVsevolod Stakhov2010-04-081-7/+37
| | | | | | * Many fixes to processes spawning * Implement rereading of config * Fix stupid yacc with its stupid global vars
* * Modules sectionVsevolod Stakhov2010-04-081-16/+107
|
* * Handle modules configurationVsevolod Stakhov2010-04-081-29/+26
|
* * Wellcome to the XML worldVsevolod Stakhov2010-04-071-65/+203
|
* * Add classifiers and composites sections to dumpVsevolod Stakhov2010-04-061-6/+109
|
* * Add lua functions parsing for module optionsVsevolod Stakhov2010-04-061-34/+427
| | | | | | | * Add missing sections to XML parser (classifier, statfile, view, settings) * Add missing params to XML parser * Implement new commandline options parser (using glib) * Set version to 0.3.0 as new rspamd would use new config system
* * Add initial version of lua configuration systemVsevolod Stakhov2010-04-051-5/+57
|
* * Add dumper to XML file (not all sections yet)Vsevolod Stakhov2010-04-011-33/+246
| | | | | | | | * 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)
* * Add more syntaxVsevolod Stakhov2010-03-301-47/+321
|
* * New syntax parser that should make syntax check of XML configsVsevolod Stakhov2010-03-271-66/+376
| | | | | | | | * 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-0/+379