Commit Graph

173 Commits

Author SHA1 Message Date
Vsevolod Stakhov
1b007aafd2 * Add new map 'redirector_hosts_map' for determining which hosts should be checked with redirector 2009-07-28 15:33:45 +04:00
Vsevolod Stakhov
fc5c006ccb * Avoid using static variables for callbacks
* Do not write to redirector logs not checked urls
2009-06-26 15:30:55 +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
b9baa0d48d * Add expression parser utility
* Temporaly switch off expression optimizer as it should be reworked
2009-04-27 19:03:11 +04:00
Vsevolod Stakhov
c0cd8e414a * Fix urls extracting, avoid code repeating 2009-04-17 19:04:04 +04:00
Vsevolod Stakhov
580710d624 * Fixes to redirector:
- move memcached servers setting to config hash
  - eval config file before any actions
  - move daemonization code after all subs
  - fix searching in domains for redirector's check
2009-03-11 12:08:11 +03:00
Vsevolod Stakhov
e7017a518b * Fix redirector connection procedure
* Add more strict login
* Add new header Queue-ID to protocol
* Log message id or queue id
* Add config file for redirector
* Add ability to set regexp and domains list to check with redirector
2009-03-10 19:54:20 +03:00
Vsevolod Stakhov
514d83c13d * Fix initialization procedure of redirector
* Do not write to log file if we cannot open it
2009-03-06 13:09:32 +03:00
Vsevolod Stakhov
b4e3c96659 * Change method of dropping privilleges 2009-03-04 13:58:20 +03:00
Vsevolod Stakhov
8956934199 * Add ability to fork multiply lmtp workers
* Add ability to drop privilleges of rspamd processes
* Add ability to install redirector with rspamd
* Add FreeBSD start scripts for rspamd and redirector
* Remove command line parsing from util.c as it has specific usage only in main process
2009-03-03 18:56:10 +03:00
Vsevolod Stakhov
def8d3d1a9 * Add compatibility with gmime24 2009-03-02 13:09:33 +03:00
Vsevolod Stakhov
de7c8a550a * Add debug for mime parsing
* Fill task structure with zeroes in url-extracter
2009-03-02 01:39:40 +03:00
Vsevolod Stakhov
080af17704 * Fix url-extracter
* Fix soft-shutdown of dispacther
* Turn debug on by default in cmake
* Change logic of save points
2009-02-27 20:06:15 +03:00
Vsevolod Stakhov
2300ff7346 * Add issue to cmake to make perl module as well
* Fix some portability issues (to FreeBSD mainly)
* Add script to make modules list
2009-02-17 15:04:24 +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
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
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
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@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
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