Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
2 months ago
Vsevolod Stakhov
75327b3889
[Project] Convert the remaining
3 months ago
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
10 months ago
Vsevolod Stakhov
71d52e806a
[Minor] Fix various style issues
7 years ago
Vsevolod Stakhov
3d0a1252f1
[Minor] Add method to get classifier options from Lua
7 years ago
Vsevolod Stakhov
37ad53dee0
[Rework] Remove legacy code never used for classifiers
7 years ago
Vsevolod Stakhov
dedb850663
[Feature] Use rspamd specific type checks for userdata
8 years ago
Vsevolod Stakhov
6bc5286496
Refactor UCL API
8 years ago
Vsevolod Stakhov
b35299b4e3
Fix leaks in lua error paths
8 years ago
Vsevolod Stakhov
8766fba694
Switch the rest to apache 2
8 years ago
Vsevolod Stakhov
2308f4059c
Update lua code for the new logger.
8 years ago
Vsevolod Stakhov
8ebc43f861
Rework classifiers configuration and naming.
Now it is possible to register multiple classifiers with the same type.
9 years ago
Vsevolod Stakhov
665166c376
Start refactoring of statistics in rspamd.
9 years ago
Vsevolod Stakhov
b5597411a2
Reorganize statfiles and classifiers into libstat.
9 years ago
Vsevolod Stakhov
c2765b3eb3
Use modules preload for lua.
9 years ago
Vsevolod Stakhov
df48f709f8
Rework lua function names to avoid ambiguity.
9 years ago
Vsevolod Stakhov
379055dbbb
Unify style without sorting headers.
10 years ago
Vsevolod Stakhov
fe79d8c5a3
Revert "Unify code style."
This reverts commit e0483657ff
.
10 years ago
Vsevolod Stakhov
e0483657ff
Unify code style.
10 years ago
Vsevolod Stakhov
d6643f35d7
Refactor config API.
10 years ago
Vsevolod Stakhov
5f25b69c03
Refactor worker task structure and API.
10 years ago
Vsevolod Stakhov
ea2e597208
Adopt new libucl.
10 years ago
Vsevolod Stakhov
418b59eb3b
Fix options in statfiles.
10 years ago
Vsevolod Stakhov
7cc8754ad9
Adopt to lua 5.2.
11 years ago
Vsevolod Stakhov
3789849b7b
* Add meta-classification example.
Many changes to advanced statistic and meta-classification logic.
Add example of complex meta-classification.
11 years ago
Vsevolod Stakhov
80d2b194b1
Allow multiply statfiles with a same label.
11 years ago
Vsevolod Stakhov
6205f36ee1
* Add dynamic configuration dumping.
* Add labels support to the statfiles (would be used for meta-classification)
* Rewrite exim spam.c patch to work with both rspamd and SA by using 'variant=rspamd' option
in spam_server line.
11 years ago
Vsevolod Stakhov
ea68f17ec2
Another debian license fix.
Add apache license for regexp that were delivered from SpamAssassin project.
Fix debian/copyright for src/dns.c.
11 years ago
Vsevolod Stakhov
d4fb886390
Update copyright (required by debian).
11 years ago
Vsevolod Stakhov
b90267a71c
* Rework thread pools locking logic to avoid global lua mutex usage.
Fixed several memory leaks with modern glib.
Fixed memory leak in dkim code.
Fixed a problem with static global variables in shared libraries.
11 years ago
Vsevolod Stakhov
e1a8ed5013
* Add lua worker type and lua worker bindings.
* Add lua utility library for basic utils.
* Fixes lua_buffer code.
Fix lua loading error.
Added some other lua utility functions.
12 years ago
Vsevolod Stakhov
a5b48a05a9
* More things to be thread-safe:
- pool allocator is now thread-safe
- lua subsystem now holds lock to avoid lua stack corruption
- events subsystem now using conditional variables to wait for async_threads
- insert_result is thread-safe now
12 years ago
Vsevolod Stakhov
f355b1b494
Fix stupid bug with lua stack corruption.
12 years ago
Vsevolod Stakhov
0b01a138da
Fix critical bug with lua stack cleaning that caused heavy memory leaks.
Update to 0.4.3.
13 years ago
Vsevolod Stakhov
4c4773d96b
* Fix build under CentOS 5 with old glib 2.12
* Fix build of rspamd with CMAKE_BINARY_DIR differs from CMAKE_SOURCE_DIR
Rework include style.
13 years ago
Vsevolod Stakhov
fd6c856b34
Add workaround for clang under linux.
Fix problems found by static analyzing.
13 years ago
Vsevolod Stakhov
bada3312a8
Fix statfiles class determination euristic.
Fix call of classifier pre-callback.
13 years ago
Vsevolod Stakhov
5eb0717f2e
Create statfiles using learn_spam function for bayes classifier.
Fix call of pre callbacks for a classifier.
13 years ago
Vsevolod Stakhov
ff4871310f
* First commit to implement multi-statfile filter system with new learning mechanizm (untested yet)
13 years ago
Vsevolod Stakhov
6b306ab875
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so
important changes would be separated from small ones.
13 years ago
Vsevolod Stakhov
e413f4ee9c
* Introduce new logging system:
- 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
14 years ago
Vsevolod Stakhov
1b1bcd6966
* Implement pre and post classify callbacks for checking specific statfiles for this task
TODO:
- add properties to get all parameters of input task
- add properties to statfile object
- add some normalization function for calling from classify process
- document changes
14 years ago