Commit Graph

142 Commits

Author SHA1 Message Date
Vsevolod Stakhov
be7df66484 * Fix some more bugs 2009-07-23 20:22:00 +04:00
Vsevolod Stakhov
3035b4fcc1 * Make modules disableable from config 2009-07-23 20:02:33 +04:00
Vsevolod Stakhov
ecc3b51cfd * Add http maps support 2009-07-21 18:50:45 +04:00
Vsevolod Stakhov
d52c26c9d3 * Fix stupid error with memory copying 2009-07-16 16:59:46 +04:00
Vsevolod Stakhov
2217589741 * Fix order of flags parsing 2009-07-15 13:05:11 +04:00
Vsevolod Stakhov
28fa4348d4 * Add -C flag to dump cache content
* Fix sorting logic
2009-07-15 12:40:36 +04:00
Vsevolod Stakhov
5f5254ff21 * Fix symbol planning, add cache_file directive to config file
* Fix some errors
2009-07-14 17:09:49 +04:00
Vsevolod Stakhov
a8cdd33ac7 * Rework the whole filters system
* Add metrics optimization and symbols cache
* Change all plugins

[DRAGONS]: not for production usage, some things are still not working!
2009-07-13 20:54:13 +04:00
Vsevolod Stakhov
bca226772e * Introduce new system of workers spawning and configuring, now rspamd can be easily extended by new types of wrokers
* Rework config system and avoid from using queue (3) lists
* Upgrade version to 0.2.0 as config format is now incompatible with older one
2009-06-17 19:31:48 +04:00
Vsevolod Stakhov
dc48e79c15 * Use own logging system to use static logging buffer instead of dynamically allocated one 2009-06-16 15:39:09 +04:00
Vsevolod Stakhov
e45ec9fd0e * Move event and gmime init to main 2009-05-05 17:01:35 +04:00
Vsevolod Stakhov
860feef97e * Enable counters interface
* Move modules configuration to init stage
2009-05-05 16:57:11 +04:00
Vsevolod Stakhov
3604753e01 * Fix shared hashes avoiding its resizing 2009-05-04 19:53:43 +04:00
Vsevolod Stakhov
05556b30f9 * Add counters for rspamd symbols
* Fix shared hashes
2009-05-04 18:55:12 +04:00
Vsevolod Stakhov
43f29d9dd1 * Fix daemon (3) call 2009-04-30 14:56:16 +04:00
Vsevolod Stakhov
6cb3a85919 * Enable gprof support 2009-04-29 16:37:03 +04:00
Vsevolod Stakhov
bf47a84713 * Fix variables substitution 2009-04-22 18:15:43 +04:00
Vsevolod Stakhov
6663e20a1a * Try to convert each text part of messages to utf8 to avoid problems with regexps 2009-04-15 16:24:55 +04:00
Vsevolod Stakhov
dd2fbb7a5b * Add message handling functions to lua API
* Add ability to add lua code in config with .lua and .endlua
* Add consolidation functions support that are written in perl or lua
2009-03-30 17:57:59 +04:00
Vsevolod Stakhov
89a83f2ef6 * Add initial LUA filters support 2009-03-27 18:30:40 +03:00
Vsevolod Stakhov
a83e5f18a2 * Add ability to build rspamd without perl support
* Fix creating of uinx socket
* Improve some build issues
2009-03-27 14:21:27 +03:00
Vsevolod Stakhov
e894cd18cf * Fix variable substitution
* Add new command line parameter '-V' allowing to dump all variables of rspamd
2009-03-24 12:46:41 +03:00
Vsevolod Stakhov
6088008d6c * With flag -t syntax of modules variables is also inspected
* Set "C" locale on start to avoid some troubles with logging
2009-03-19 12:25:14 +03:00
Vsevolod Stakhov
1085ddb9c0 * Fix reload logic
* Create listen sock for lmtp in main processes dispatcher to allow multiply lmtp workers
* Fix logic of logging
2009-03-13 18:03:29 +03:00
Vsevolod Stakhov
8ad17a5762 * Drop privilleges immideately after creating of listen socket 2009-03-04 12:50:40 +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
5424cc32d4 * Unify socket creation and accepting by using utility functions
* Check SO_ERROR on socket immideately after connect/bind to avoid resourses allocation for
  unsuccessful connections
* Avoid descriptors leakage when we create sockets and have errors on them
* Set on all socket descriptors FD_CLOEXEC flag to avoid problems with executing LDA
2009-03-03 14:31:51 +03:00
Vsevolod Stakhov
3d6020ef1e * Remove %m from logging it seems to be unsupported by FreeBSD printf version 2009-03-02 16:43:01 +03:00
Vsevolod Stakhov
120980beba * Fix logging when process is starting
* Add -t option for config testing
* Try to search default config in install prefix not in current directory
2009-02-26 18:51:31 +03:00
Vsevolod Stakhov
1cd34f5283 * Add initial LMTP support and LDA delivery to rspamd 2009-02-24 20:16:53 +03:00
Vsevolod Stakhov
2dca592dce * Improve logger initialization 2009-02-18 19:52:42 +03:00
Vsevolod Stakhov
0fd2682e11 * Prepare to migrate to cmake (still need to write install target and 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
2009-02-16 19:50:18 +03:00
Vsevolod Stakhov
f2774fb0fa * Add BSD license text 2009-02-16 13:41:40 +03:00
Vsevolod Stakhov
39e66c0960 * Init perl and do all perl specific operations from the single place in code
* Push objects correctly to stack (by blessing them and making hash reference)
2009-02-13 17:03:43 +03:00
Vsevolod Stakhov
6c8fc71eaf * Add log function to perl API
* Prepare for more detailed work on rspamd perl API
2009-02-12 14:40:51 +03:00
Vsevolod Stakhov
ec5b7a84cf * Make surbl checks working 2009-01-26 19:27:30 +03:00
Vsevolod Stakhov
37d3605fa0 * Fix errors in learning implementation 2009-01-11 17:31:26 +03:00
Vsevolod Stakhov
f7639eb2dc * Implement delayed fork of dead workers (to avoid fork bombs)
* Implement refork of controller
* Log time to console in normal view
2009-01-11 12:39:37 +03:00
Vsevolod Stakhov
5f0da61541 * Make sample config more complete
* Fix bugs with config file parsing
* Fix bugs with creating sockets and reading commands
2008-12-18 20:31:21 +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
d62fb36650 * Add learning interface to rspamd (still requires classifier to work) 2008-12-02 19:58:28 +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