Commit Graph

269 Commits

Author SHA1 Message Date
Vsevolod Stakhov
e1250bcf59 * Add functions support to rspamd regexps
* 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
2009-03-19 17:44:57 +03:00
Vsevolod Stakhov
a450d0faa8 * Add new hash for storing hash data in shared memory
* Add rwlocks implementation (primitive) in memory pool library
2009-01-27 19:15:51 +03:00
Vsevolod Stakhov
1162170387 * Add simple implementation of classifiers abstraction and winnow classifier
* Force statfile to work with float values
2008-12-04 19:33:26 +03:00
Vsevolod Stakhov
42b81716ec * Remove strlcpy code and replace it with glib alternative
* Polish code and remove bugs found
2008-12-03 19:48:15 +03:00
Vsevolod Stakhov
06661f20cb * Write functions to operate blocks in stat files
* Write test case for statistics files API
2008-11-28 19:29:00 +03:00
Vsevolod Stakhov
2aa9c74f1c * Reorganize structure of source files
* Adopt build system for new structure

--HG--
rename : cfg_file.h => src/cfg_file.h
rename : cfg_file.l => src/cfg_file.l
rename : cfg_file.y => src/cfg_file.y
rename : cfg_utils.c => src/cfg_utils.c
rename : controller.c => src/controller.c
rename : filter.c => src/filter.c
rename : filter.h => src/filter.h
rename : fstring.c => src/fstring.c
rename : fstring.h => src/fstring.h
rename : main.c => src/main.c
rename : main.h => src/main.h
rename : mem_pool.c => src/mem_pool.c
rename : mem_pool.h => src/mem_pool.h
rename : memcached-test.c => src/memcached-test.c
rename : memcached.c => src/memcached.c
rename : memcached.h => src/memcached.h
rename : perl.c => src/perl.c
rename : perl.h => src/perl.h
rename : plugins/regexp.c => src/plugins/regexp.c
rename : plugins/surbl.c => src/plugins/surbl.c
rename : protocol.c => src/protocol.c
rename : protocol.h => src/protocol.h
rename : upstream.c => src/upstream.c
rename : upstream.h => src/upstream.h
rename : url.c => src/url.c
rename : url.h => src/url.h
rename : util.c => src/util.c
rename : util.h => src/util.h
rename : worker.c => src/worker.c
2008-11-01 18:01:05 +03:00
Vsevolod Stakhov
802890f0f2 * Add support of shared memory chunks to memory pool allocator. Also add locking support (spin mutexes)
* Add simple test case for shared memory allocation
2008-10-16 19:41:45 +04:00
cebka@cebka-laptop
da93e9d635 * Implement expression parser (convertor to inverse polish record)
* Improve configure system by implementing dependencies
* Add .depend files for subdirs that requre it
* Write simple test for expressions parser
2008-10-13 19:06:07 +04:00
cebka@cebka-laptop
6c55c3314c * Write protocol output functions
* Fix test suite build under linux
2008-10-10 19:21:23 +04:00
cebka@mailsupport.rambler.ru
e117181e29 * Remove unused debug messages from url library 2008-09-24 03:48:31 +04:00
cebka@mailsupport.rambler.ru
193acf73e5 * Small updates to memory pool library
- fix cases when new chunk is allocated
 - add memory pool allocator statistics
 - let it work in multi-threaded environment
 - add strdup function for convinience
* Use memory pool allocator more widely to avoid memory leaks in future and optimize performance
* Task pool chunk size is now pre-defined constant (16 Kb currently)
2008-09-23 11:47:56 +04:00
cebka@mailsupport.rambler.ru
2b65ae425b * Optimize memory pools allocator
* Add test case for memory pools
2008-09-22 01:08:41 +04:00
cebka@mailsupport.rambler.ru
4ad814a6c6 * Write test case for async memcached library
* Fix memcached async library to pass test :)
2008-09-16 18:42:02 +04:00
cebka@mailsupport.rambler.ru
9e442d87b2 * Fix include dependencies 2008-09-16 15:47:40 +04:00
Vsevolod Stakhov
fe7ebd5be9 * Add utility for extracting urls from message
* Rework build system
2008-09-10 17:58:54 +04:00
Vsevolod Stakhov
57e765ce78 * Fix url parser (get regexp from our mail system)
* Add some more tests to url testcase
2008-09-09 18:48:49 +04:00
Vsevolod Stakhov
f1e17a0d63 * Fix url length while passing them to normalizer
TODO: fix html parsing regexp (now it doesn't work)
2008-09-08 19:45:45 +04:00
Vsevolod Stakhov
5237a66576 * Use glib logger and regexp matching functions 2008-09-08 19:29:34 +04:00
Vsevolod Stakhov
946ddcfbc4 * Add initial test suite using glib test suite 2008-09-08 18:18:56 +04:00