Commit Graph

269 Commits

Author SHA1 Message Date
Vsevolod Stakhov
546c7aa532 Improve testing for radix. 2014-09-16 18:28:53 +01:00
Vsevolod Stakhov
3d36d9cc64 Improve radix trie tests. 2014-09-15 10:46:40 +01:00
Vsevolod Stakhov
aa48f9df19 Add radix trie test suite. 2014-09-12 12:18:55 +01:00
Vsevolod Stakhov
491e42b434 Restore testing framework. 2014-09-12 11:56:42 +01:00
Vsevolod Stakhov
d6643f35d7 Refactor config API. 2014-04-30 13:26:51 +01:00
Vsevolod Stakhov
ad837700b8 Refactor memory pool naming. 2014-04-20 08:16:49 -07:00
Vsevolod Stakhov
293ea2757b Add comparasion for rcl vs jansson.
Fix some issues in jansson memory management.
2013-10-15 13:55:09 +01:00
Vsevolod Stakhov
04c3a653f7 Disallow '//' as a single line comment. 2013-10-12 10:00:14 +01:00
Vsevolod Stakhov
03a70b9d49 Fix rcl parser. 2013-10-11 15:16:07 +01:00
Vsevolod Stakhov
d00c68bbac Improve tests. 2013-08-25 13:14:46 +01:00
Vsevolod Stakhov
1c97bfe34a Add refcount to rcl objects. 2013-08-25 11:03:07 +01:00
Vsevolod Stakhov
7d2af49e0f Add test for signature checking in rcl. 2013-08-22 15:36:04 +01:00
Vsevolod Stakhov
40eb7a316a Fix whitespace parsing for rcl arrays. 2013-08-21 15:58:53 +01:00
Vsevolod Stakhov
91d9f33e86 Fix some issues with comments in rcl. 2013-08-21 15:31:48 +01:00
Vsevolod Stakhov
5607e21b22 Improve test suite by using standard glib test options. 2013-08-21 15:12:24 +01:00
Vsevolod Stakhov
767c6ccf61 Refactor fetching functions slightly. 2013-08-21 11:57:15 +01:00
Vsevolod Stakhov
f32ddd2000 Fixes to rcl parser found by tests. 2013-08-13 01:44:10 +01:00
Vsevolod Stakhov
409f5abe9a Improve testing logic. 2013-08-13 01:01:06 +01:00
Vsevolod Stakhov
9d3180655c Fix rcl test suite and parser. 2013-08-12 16:07:29 +01:00
Vsevolod Stakhov
ded21373d5 Fix some rcl parser errors found by test. 2013-08-09 17:54:14 +01:00
Vsevolod Stakhov
07011527b9 Add a test suite for rcl. 2013-08-09 16:53:32 +01:00
Vsevolod Stakhov
b346120d24 Add a simple test of rsa utils in lua.
Support RSA signing in lua_rsa module.
Add save function for rsa_signature.
Fix test logic for lua modules.
2013-06-13 15:47:32 +01:00
Vsevolod Stakhov
6de87da477 Fix rrd update. 2012-12-21 20:55:22 +04:00
Vsevolod Stakhov
ca860398fe Implement rra writing. 2012-12-18 22:12:45 +04:00
Vsevolod Stakhov
fbcc7af8a6 * Add simple test for rrd.
Several fixes to RRD API.

TODO: fix test building
TODO: improve update of rrd files
TODO: rework shared libraries again
2012-12-15 04:17:10 +04:00
Vsevolod Stakhov
1048ad10cd * Implement 'time_jitter' setting allowing to check signatures in future in case of incorrect system time (1 minute jittering by default). 2012-06-04 21:36:58 +04:00
Vsevolod Stakhov
851ffca79a * Write tests for DKIM signature and key parsers.
Fix DKIM parsers.
2012-05-29 03:07:23 +04:00
Vsevolod Stakhov
7437cc1df6 Aio context must be long not int.
O_DIRECT on linux requires strict memory alignment.
2012-03-11 17:53:58 +04:00
Vsevolod Stakhov
448ba92d15 Fixed threading for testing suite. 2012-03-05 18:58:50 +04:00
Vsevolod Stakhov
4f28edb3f5 Fix asynchronous IO API.
Write test case for aio.
2012-03-01 21:57:09 +04:00
Vsevolod Stakhov
9d70356009 Separate librspamdserver API from plugins and workers functions.
Make tests compileable again.
2012-03-01 20:14:32 +04:00
Vsevolod Stakhov
1fd435e5d4 * Rework build process:
- 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
2011-05-10 19:15:03 +04:00
Vsevolod Stakhov
683b90f4c6 * Major cleanup of cmake build system
* Add initial version of statshow utility for statfiles debugging
* Add debugging for statistics
* Remove unused utilities
2011-05-06 19:18:40 +04:00
Vsevolod Stakhov
3ebceeece2 Make own strlcpy that does not calculate remaining string length (faster and more safe)
Allow only ASCII symbols in logs, escape control chars
2010-11-16 22:00:29 +03:00
Vsevolod Stakhov
07a2e0b3c8 * Many fixes to statfile syncronization system
* Fixed statfile pool initialization and synchronization with disk
2010-09-02 20:24:41 +04:00
Vsevolod Stakhov
db125500c2 * Fix some problems with TXT records
* Try to fix removing of DNS events
2010-07-13 18:54:45 +04:00
Vsevolod Stakhov
5e458871b3 * Make SURBL module to use rspamd dns module
* Several fixes to DNS logic
2010-07-09 18:19:04 +04:00
Vsevolod Stakhov
a87a049971 * Add support for parsing SPF and SRV records
* Fix PTR parsing
* Add tests
2010-07-09 16:16:36 +04:00
Vsevolod Stakhov
9e02df3a67 * Forgotten in previous commit 2010-07-08 20:09:24 +04:00
Vsevolod Stakhov
3d1c40c972 * Make DNS resolver working
* 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
2010-07-08 20:07:07 +04:00
Vsevolod Stakhov
1153132281 * Add ability to change statfile size limit in config and allow reindexing of statfiles 2009-10-16 20:46:49 +04:00
Vsevolod Stakhov
a0f41f7c57 * New system of classifiers interface and statfiles processing
* Fix sample config
* Fix compile warnings
* Fix building without lua support
* Fix bugs with nrcpt header parsing and symbols cache loading (by Anton Nekhoroshikh)
2009-09-14 19:11:19 +04:00
Vsevolod Stakhov
7bae787900 * Rework url parsing algorithms
* Adopt all parts of rspamd for new url parser
* Improve url-extracter utility by avoiding cut&paste of mime parsing
* Small fixes to rspamc client
* Bump version to 0.1.3
2009-06-02 19:32:34 +04:00
Vsevolod Stakhov
05556b30f9 * Add counters for rspamd symbols
* Fix shared hashes
2009-05-04 18:55:12 +04:00
Vsevolod Stakhov
c0cd8e414a * Fix urls extracting, avoid code repeating 2009-04-17 19:04:04 +04:00
Vsevolod Stakhov
ed1438755d * Fix misprint 2009-03-30 20:19:08 +04:00
Vsevolod Stakhov
5d37c7aab5 * Fix error in parser when parsing last ')' we need to remove '(' from stack as well 2009-03-27 19:58:42 +03:00
Vsevolod Stakhov
5dbf570b7d * Fix many compile time warnings and polish code 2009-03-24 18:38:11 +03:00
Vsevolod Stakhov
c79b5ccd22 * Fix error in expression parser that causes bad errors with expressions that have regexp at the end
* Improve test for fuzzy hashes
* Add new object - TextPart to perl XS library that allows access to stripped parts and fuzzy hashes
* Add documentation for expressions parser and fot Mail::Rspamd::TextPart
* Allways calculate fuzzy hash for text parts
* Store text parts separately from other parts
* Add compare_parts_distance for expressions that calculates difference in 2 parts messages
* Do not try to substitute variables in empty strings
2009-03-23 14:10:07 +03:00
Vsevolod Stakhov
afdaddc4d0 * Add fuzzy hashes implementation (with adler-32 roll hash and FNV-32 hash)
* Add test case for fuzzy hashing check
2009-03-20 18:35:30 +03:00
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