aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
Commit message (Collapse)AuthorAgeFilesLines
* * Add max_tokens options to avoid classifying and learning with too much ↵Vsevolod Stakhov2011-07-261-0/+2
| | | | | | tokens from one message. Fix stupid memory leakage on client's timeout.
* Another 'proper' place.Vsevolod Stakhov2011-07-261-0/+1
|
* Fix reload command.Vsevolod Stakhov2011-06-201-0/+1
|
* Misprint.Vsevolod Stakhov2011-06-031-1/+0
|
* Fix initialization order.Vsevolod Stakhov2011-05-101-1/+1
|
* * Rework build process:Vsevolod Stakhov2011-05-101-114/+98
| | | | | | | | | | - 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
* * Preload statfiles at the early beginning in the main processVsevolod Stakhov2011-03-311-0/+30
| | | | | * Add JSON output for rspamd worker * Add HTTP protocol support for rspamd worker
* * Add ability to extract urls from subject field0.3.10Vsevolod Stakhov2011-03-231-2/+2
| | | | | | Fix phishing plugin. * Important fix for multimap/cdb handling * Important fix for phishing detector
* * Main process now has 'hard termination time' - maximum time between ↵Vsevolod Stakhov2011-03-231-3/+49
| | | | getting termination signal and waiting for workers
* Do not re-create symbols cache while doing dump of cache.Vsevolod Stakhov2011-03-221-3/+3
|
* Init cache before loading config.Vsevolod Stakhov2010-12-221-4/+6
|
* * Introduce new system of configuration checks:Vsevolod Stakhov2010-12-201-4/+21
| | | | | | | | - 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
* Add registering options for lua modulesVsevolod Stakhov2010-12-141-9/+17
| | | | * Add ability to output colored messages for file and console loggers
* Implement checking options for modulesVsevolod Stakhov2010-12-131-0/+9
| | | | | | Implement checking for classifier options Fix redirector to handle timeouts and invalid replies properly Fix surbl module not to check each url
* * Start new rspamd 0.3.4Vsevolod Stakhov2010-12-031-27/+17
| | | | * Add ability to manage per-module, per-worker and per-classifier options in XML parser
* Write release id if rspamd is built from hg.Vsevolod Stakhov2010-12-031-2/+2
|
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-30/+30
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Many fixes to statfile syncronization systemVsevolod Stakhov2010-09-021-1/+3
| | | | * Fixed statfile pool initialization and synchronization with disk
* * Consider lua plugins errors as fatal configuration errorsVsevolod Stakhov2010-08-041-2/+7
|
* * Pre-init symbols cache when rereading configVsevolod Stakhov2010-07-271-0/+4
|
* * Reopen log file by USR1 signalVsevolod Stakhov2010-07-191-4/+19
| | | | * Add reopenlog method to FreeBSD rc script
* * Make improvements to HTML entites decoder: now it replaces entities with ↵Vsevolod Stakhov2010-07-161-1/+11
| | | | | | | common characters and remove unknown entities. This behaviour is more like of standart HTML to text conversion * Add -d option to force debug output
* * Fix stupid error with surbl module reconfig (another one, blame me)Vsevolod Stakhov2010-07-051-0/+2
| | | | * Do not show duplicate urls in url header
* * Pass env from main() arguments instead of platform specific global environVsevolod Stakhov2010-06-221-1/+1
|
* * Get weights of symbol from default metric for symbols cacheVsevolod Stakhov2010-06-181-2/+7
| | | | * Fix setting task->from/task->rctp in smtp client
* * Implement initial version of greylisting triplets storageVsevolod Stakhov2010-06-171-1/+9
| | | | * Fix issues with smtp worker
* * Change metric logicVsevolod Stakhov2010-06-161-60/+35
| | | | | | | * 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
* * New symbols sorter:Vsevolod Stakhov2010-05-281-4/+16
| | | | | | | - add ability to have dynamic rules inside items cache - make 3 types of rules: negative, dynamic and static - make logic of cache more simple by using glib lists instead of arrays - do checks of symbols in more logically correct way (negative->dynamic->static)
* * Continue implementing smtp proxyVsevolod Stakhov2010-05-261-0/+9
|
* * Dump grow factor to XMLVsevolod Stakhov2010-05-131-0/+1
| | | | | * Insert classifiers parsed from xml config to config object * Fix reinitializing of lua filters
* * Low log level for debug messagesVsevolod Stakhov2010-05-131-1/+1
|
* * Fix config reloadingVsevolod Stakhov2010-05-131-15/+17
| | | | | * Add ability to register variables in memory pools (hash with known lifetime) * Avoid of using of some global variables
* * Add sample XML configVsevolod Stakhov2010-05-061-2/+2
| | | | | * Fix minor errors in logging initializing * Fix installation of config files
* * Improve logging system:Vsevolod Stakhov2010-04-271-4/+4
| | | | | | | - do not write many repeated messages to log - add process name to log line * Small fixes to FreeBSD port and to start script as we have xml version now * Reconfig modules while rereading config file
* * Bugfixes:Vsevolod Stakhov2010-04-201-2/+36
| | | | | | | | | | - 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-1/+1
| | | | * Reset lua state while reloading
* * Handle and dump factors correctlyVsevolod Stakhov2010-04-081-120/+140
| | | | | | * Many fixes to processes spawning * Implement rereading of config * Fix stupid yacc with its stupid global vars
* * Wellcome to the XML worldVsevolod Stakhov2010-04-071-46/+94
|
* * Add lua functions parsing for module optionsVsevolod Stakhov2010-04-061-59/+44
| | | | | | | * 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-4/+3
|
* * Add dumper to XML file (not all sections yet)Vsevolod Stakhov2010-04-011-0/+6
| | | | | | | | * 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 support for Judy storage for fuzzy hashescebka@lenovo-laptop2010-03-221-2/+10
|
* * Add maillist plugin for detecting mailmain/ezml and subscribe.ru listscebka@lenovo-laptop2010-02-011-0/+1
|
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-87/+55
| | | | | | | | | - 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 ability to specify pid file from command line (for rc scripts)Vsevolod Stakhov2009-12-211-3/+11
| | | | * Do not use flock directly in pidfile handling
* * Add limits support to each worker (max open files and max core size)Vsevolod Stakhov2009-12-181-0/+27
| | | | * Fix dependency on lex and yacc sources
* * Fix symbols cache (init lua filters before symbols cache initialization)Vsevolod Stakhov2009-12-141-10/+10
| | | | | | | * Remove LRU expiration logic from statfiles and replace it with random/lowerest value expiration logic: expire random block or block with lowerest value ! statfiles are incompatible again
* * Adopt printf function from nginx for comfortable printing of some data ↵Vsevolod Stakhov2009-11-301-14/+16
| | | | | | | types (fixed strings, pids etc) * Fix work of http maps (they were broken in some places before) * Fix sync of statfiles (not fully tested yet)
* * SI_ code macroses are not BSD compatible, avoid using themVsevolod Stakhov2009-11-051-24/+2
|
* * Add more advanced signal processing routineVsevolod Stakhov2009-11-051-3/+84
|