aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * Add ability to build rspamd without perl supportVsevolod Stakhov2009-03-271-2/+2
| | | | | * Fix creating of uinx socket * Improve some build issues
* * More accurate work with clockVsevolod Stakhov2009-03-251-6/+16
|
* * Log scan time and scan length of messagesVsevolod Stakhov2009-03-251-0/+14
| | | | * Remove 2 memory leaks
* * Fix multiply accept issuesVsevolod Stakhov2009-03-241-2/+9
|
* * Polish socket utility functionsVsevolod Stakhov2009-03-241-22/+16
|
* * Fix many compile time warnings and polish codeVsevolod Stakhov2009-03-241-1/+2
|
* * Add functions support to rspamd regexpsVsevolod Stakhov2009-03-191-194/+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
* * Fix reload logicVsevolod Stakhov2009-03-131-4/+11
| | | | | * Create listen sock for lmtp in main processes dispatcher to allow multiply lmtp workers * Fix logic of logging
* * Some fixes to regexp moduleVsevolod Stakhov2009-03-121-1/+4
| | | | * Add documentation for rspamd regexp module