aboutsummaryrefslogtreecommitdiffstats
path: root/src/statfile.c
Commit message (Collapse)AuthorAgeFilesLines
* Make own strlcpy that does not calculate remaining string length (faster and ↵Vsevolod Stakhov2010-11-161-2/+2
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-47/+47
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Fix shared usage of statfilesVsevolod Stakhov2010-09-161-3/+36
| | | | | | * Add invalidation of statfiles in case of learning, so now statfiles are invalidated in about a minute after learning * This should fix shared usage of statfile pool by several processes
* * Many fixes to statfile syncronization systemVsevolod Stakhov2010-09-021-5/+8
| | | | * Fixed statfile pool initialization and synchronization with disk
* * Add bayesian classifier (initial version)Vsevolod Stakhov2010-08-131-8/+1
|
* * Make DNS resolver workingVsevolod Stakhov2010-07-081-4/+4
| | | | | | * Many improvements to rspamd test suite: now it CAN be used for testing rspamd functionality * Write DNS resolver tests * Fix issues with memory_pool mutexes and with creating of statfiles
* * Fix strict aliasing while compiling with optimizationVsevolod Stakhov2010-05-311-1/+1
| | | | | * Fix tanhl detection for platforms that have not implementation of it * Remove several compile warnings
* * In classify normalize result after comparing, not beforeVsevolod Stakhov2010-05-271-1/+1
|
* * Fix cores in spf code (partially)cebka@lenovo-laptop2010-02-271-0/+4
| | | | | * Add support for spf 2.0 (Sender ID policy) * Add support of MAP_NOCORE to systems that supports it (FreeBSD for example)
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-36/+36
| | | | | | | | | - 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
* * Fix symbols cache (init lua filters before symbols cache initialization)Vsevolod Stakhov2009-12-141-25/+17
| | | | | | | * 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-6/+43
| | | | | | | | | | - 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
* * Write revision and revision time to statfileVsevolod Stakhov2009-11-121-6/+6
| | | | * Make some improvements to API (trying to make it more clear)
* * New version of rspamd statfiles that can be used in syncVsevolod Stakhov2009-11-121-4/+126
| | | | | * Add convertion routines for converting 1.0 to 1.2 statfiles * Reserve some place in header for future features
* * Fix reading of last blockVsevolod Stakhov2009-10-201-2/+2
|
* * Add ability to change statfile size limit in config and allow reindexing ↵Vsevolod Stakhov2009-10-161-18/+148
| | | | of statfiles
* * Retab, no functional changesVsevolod Stakhov2009-10-021-118/+117
|
* * Fix another raceVsevolod Stakhov2009-09-301-4/+27
|
* * Fix race between learn and classifyVsevolod Stakhov2009-09-281-4/+2
|
* * Fix error with statfiles sorting functionVsevolod Stakhov2009-07-231-1/+1
|
* * Rework the whole filters systemVsevolod Stakhov2009-07-131-1/+1
| | | | | | | * 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-5/+5
|
* * Rework structure and API of statfiles functions to improve performance and ↵Vsevolod Stakhov2009-07-021-112/+85
| | | | | | avoid missusage of hash table * Correct url length calculation in urls command
* * Fix shared hashes avoiding its resizingVsevolod Stakhov2009-05-041-1/+1
|
* * Validate utf8 chars to avoid crashesVsevolod Stakhov2009-04-241-0/+3
|
* * Fix many compile time warnings and polish codeVsevolod Stakhov2009-03-241-1/+3
|
* * Add ability to configure sections in statfilesVsevolod Stakhov2009-03-131-0/+16
| | | | | * Add ability to define variables in modules blocks * Add symbolic aliases for statfile sections
* * Add sections support to rspamd statfiles APIVsevolod Stakhov2009-03-121-25/+147
| | | | | | * Change logic of statfile pool: - statfiles hash is no longer shared hash as we have per-process uniq things like current section or offset in statfile - introduce shared hash of statfiles mmapped areas to avoid multiply mmaps of the same file
* * Remove %m from logging it seems to be unsupported by FreeBSD printf versionVsevolod Stakhov2009-03-021-6/+6
|
* * Prepare to migrate to cmake (still need to write install target and ↵Vsevolod Stakhov2009-02-161-11/+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
* * Add BSD license textVsevolod Stakhov2009-02-161-0/+24
|
* * Add some comments and documentationVsevolod Stakhov2009-02-051-2/+3
|
* * Add new hash for storing hash data in shared memoryVsevolod Stakhov2009-01-271-18/+19
| | | | * Add rwlocks implementation (primitive) in memory pool library
* * Rewrite perl client for rspamd, now it allows access to both normal and ↵Vsevolod Stakhov2009-01-191-0/+6
| | | | | | control interfaces * Fix small errors in tokenizer and controller interface
* * Add simple utility for sending mail to rspamdVsevolod Stakhov2009-01-161-3/+0
| | | | * Fix some errors in freeing message object
* * Add simple implementation of classifiers abstraction and winnow classifierVsevolod Stakhov2008-12-041-2/+2
| | | | * Force statfile to work with float values
* * Remove strlcpy code and replace it with glib alternativeVsevolod Stakhov2008-12-031-1/+1
| | | | * Polish code and remove bugs found
* * Write functions to operate blocks in stat filesVsevolod Stakhov2008-11-281-3/+141
| | | | * Write test case for statistics files API
* * Add initial implementation of statistics files handling APIVsevolod Stakhov2008-11-271-0/+241