aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* * First commit to implement multi-statfile filter system with new learning ↵Vsevolod Stakhov2011-07-121-0/+23
| | | | mechanizm (untested yet)
* * Fix error in raw headers parsingVsevolod Stakhov2011-05-241-0/+4
| | | | * Improve speed of raw headers access
* * Strip email addresses from bracesVsevolod Stakhov2011-05-131-0/+23
| | | | Ignore empty domains in settings
* * Rework build process:Vsevolod Stakhov2011-05-101-540/+181
| | | | | | | | | | - 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
* * Start new rspamd 0.3.4Vsevolod Stakhov2010-12-031-0/+54
| | | | * 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-6/+88
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* Urgent fixes.Vsevolod Stakhov2010-11-031-1/+1
|
* Add compatibility with glib < 2.2.22Vsevolod Stakhov2010-10-281-0/+7
| | | | Fix user in start script
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-172/+162
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Fix detection of numeric urls (reported by citrin)Vsevolod Stakhov2010-07-051-13/+16
| | | | * Write real time of message's scan to log (not only virtual)
* * Use rspamd_snprintf instead of libc oneVsevolod Stakhov2010-06-241-2/+8
|
* * Fix compatibility issuesVsevolod Stakhov2010-06-231-2/+9
|
* * Rewrite buffered input for line policy (again)Vsevolod Stakhov2010-06-221-1/+17
| | | | | | | | * 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
* * New logic of SURBL module:Vsevolod Stakhov2010-06-181-0/+28
| | | | | | | | | | | | | - remove completely 2tld - add option "exception" - for domains from exception list check (level + 1) parts of url: If we have url mail.some.com.ru and have com.ru in exception list then we would check some.com.ru. If we have some.com.ru in exceptions list them mail.some.com.ru would be checked and so on. - optimized parsing of surbl requests * Use system mkstemp(3) on systems where it is available as glib implementation has poor security and generate rather predictable temporary file names.
* * Convert statistic sums to use long double for countersVsevolod Stakhov2010-05-271-7/+71
| | | | * Use hyperbolic tangent for internal normalizer
* * Fix unix socket creation under FreeBSD (reported by Andrey Zverev)cebka@lenovo-laptop2010-02-151-7/+5
|
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-190/+21
| | | | | | | | | - 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-2/+6
| | | | * Do not use flock directly in pidfile handling
* * Fix symbols cache (init lua filters before symbols cache initialization)Vsevolod Stakhov2009-12-141-2/+2
| | | | | | | * 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
* * Many major fixes to statfiles:Vsevolod Stakhov2009-12-031-0/+5
| | | | | | | | | | - fix bug with mmapping files: new addresses must NOT be allocated in shared memory by themselves - fix bug with winnow classifier that totally brokes it down - fix bug with too much grow of values * Use double precission values in statistics * Add statistics for statfiles * Add more informative data to output of LEARN command (weight of incoming message) * Add weight to output of classifier as well
* * Some fixes to syncVsevolod Stakhov2009-12-021-0/+3
|
* * Adopt printf function from nginx for comfortable printing of some data ↵Vsevolod Stakhov2009-11-301-4/+418
| | | | | | | 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)
* * Write revision and revision time to statfileVsevolod Stakhov2009-11-121-2/+45
| | | | * Make some improvements to API (trying to make it more clear)
* * Fix addrlen of sockaddr_un (previous was a mistake)Vsevolod Stakhov2009-11-111-2/+2
|
* * Add logging urls as it was required by rambler searchVsevolod Stakhov2009-11-061-2/+0
|
* * Add more advanced signal processing routineVsevolod Stakhov2009-11-051-1/+12
|
* * Implement new system of managing rspamd processesVsevolod Stakhov2009-10-301-10/+105
|
* * Retab, no functional changesVsevolod Stakhov2009-10-021-186/+181
|
* * Export definitionsVsevolod Stakhov2009-09-211-1/+1
|
* * Add time out for sync IO as it can cause unpredictable errorsVsevolod Stakhov2009-09-211-3/+55
|
* * Cleanify logic of processes dispatcherVsevolod Stakhov2009-09-211-2/+7
|
* * Sync log before closingVsevolod Stakhov2009-09-141-0/+5
| | | | * Fix buffer allocation while reading json data
* * Add ability to call rspamd fucntions from lua apiVsevolod Stakhov2009-09-061-0/+36
| | | | | | * Make logging adaptive based on log speed (buffered vs unbuffered IO) * Fix lua API docs * Now lua modules can be loaded with glob patterns
* * Use buffered IO for loggingVsevolod Stakhov2009-08-251-13/+7
|
* * Migrate fuzzy storage to use UDP instead of TCPVsevolod Stakhov2009-08-251-3/+15
|
* * Misprint in macro nameVsevolod Stakhov2009-08-251-1/+1
|
* * Improve google perf tools supportVsevolod Stakhov2009-08-251-2/+40
| | | | * Pass to event_add only copies of struct timeval to avoid timing problems
* * Add http maps supportVsevolod Stakhov2009-07-211-3/+3
|
* * Introduce new common system of map files, that can be used for different ↵Vsevolod Stakhov2009-07-201-179/+6
| | | | | | | types of maps. This includes new logic of callbacks and callbacks calling, files are monitored with evtimers with jittering. HTTP support would be included soon as well.
* * Rework the whole filters systemVsevolod Stakhov2009-07-131-1/+3
| | | | | | | * Add metrics optimization and symbols cache * Change all plugins [DRAGONS]: not for production usage, some things are still not working!
* * Make autolearn workingVsevolod Stakhov2009-07-091-1/+1
|
* * Add views support (not completely tested yet)Vsevolod Stakhov2009-06-291-4/+84
|
* * Use own logging system to use static logging buffer instead of dynamically ↵Vsevolod Stakhov2009-06-161-0/+28
| | | | allocated one
* * Do not use values from clock_gettime for getting current timeVsevolod Stakhov2009-06-051-2/+4
|
* * Avoid double freeing of match infoVsevolod Stakhov2009-06-051-1/+1
|
* * Improve logic of reading list files, add automatic rereading of list files ↵Vsevolod Stakhov2009-06-031-0/+121
| | | | while changing
* * Enable counters interfaceVsevolod Stakhov2009-05-051-3/+1
| | | | * Move modules configuration to init stage
* * Temporary disable counters as it is impossible to actually create shared hashVsevolod Stakhov2009-05-041-1/+3
|
* * Add counters for rspamd symbolsVsevolod Stakhov2009-05-041-0/+28
| | | | * Fix shared hashes
* * Allow binds to INADDR_ANY if bind_sock is *:portVsevolod Stakhov2009-04-291-1/+1
|