]> source.dussan.org Git - rspamd.git/log
rspamd.git
9 years agoImplement dependencies addition.
Vsevolod Stakhov [Sun, 7 Jun 2015 12:57:23 +0000 (13:57 +0100)]
Implement dependencies addition.

9 years agoImprove linear processing slightly.
Vsevolod Stakhov [Sat, 6 Jun 2015 21:10:13 +0000 (22:10 +0100)]
Improve linear processing slightly.

9 years agoFix misprint.
Vsevolod Stakhov [Sat, 6 Jun 2015 20:54:56 +0000 (21:54 +0100)]
Fix misprint.

9 years agoExtend filters savepoint to support dependencies.
Vsevolod Stakhov [Fri, 5 Jun 2015 15:15:06 +0000 (16:15 +0100)]
Extend filters savepoint to support dependencies.

9 years agoSave persistent order of items indexed by id.
Vsevolod Stakhov [Fri, 5 Jun 2015 14:03:22 +0000 (15:03 +0100)]
Save persistent order of items indexed by id.

9 years agoFix calculation of pool free space.
Vsevolod Stakhov [Thu, 4 Jun 2015 17:27:40 +0000 (18:27 +0100)]
Fix calculation of pool free space.

9 years agoFix symbols items loading.
Vsevolod Stakhov [Thu, 4 Jun 2015 17:19:10 +0000 (18:19 +0100)]
Fix symbols items loading.

9 years agoAdopt for the new headers structure.
Vsevolod Stakhov [Tue, 2 Jun 2015 18:43:24 +0000 (19:43 +0100)]
Adopt for the new headers structure.

9 years agoAvoid copying when parsing headers.
Vsevolod Stakhov [Tue, 2 Jun 2015 18:31:25 +0000 (19:31 +0100)]
Avoid copying when parsing headers.

9 years agoMerge branch 'filters-rework'
Vsevolod Stakhov [Tue, 2 Jun 2015 15:36:51 +0000 (16:36 +0100)]
Merge branch 'filters-rework'

9 years agoSet processed flag on task.
Vsevolod Stakhov [Tue, 2 Jun 2015 15:36:12 +0000 (16:36 +0100)]
Set processed flag on task.

9 years agoAdd checkpoint to avoid endless iteration.
Vsevolod Stakhov [Tue, 2 Jun 2015 15:28:48 +0000 (16:28 +0100)]
Add checkpoint to avoid endless iteration.

9 years agoUse most significant bit, not least significant one.
Vsevolod Stakhov [Tue, 2 Jun 2015 15:28:27 +0000 (16:28 +0100)]
Use most significant bit, not least significant one.

9 years agoRestore build.
Vsevolod Stakhov [Tue, 2 Jun 2015 14:34:43 +0000 (15:34 +0100)]
Restore build.

9 years agoFix internal libraries.
Vsevolod Stakhov [Tue, 2 Jun 2015 13:54:55 +0000 (14:54 +0100)]
Fix internal libraries.

9 years agoAdopt LUA API.
Vsevolod Stakhov [Tue, 2 Jun 2015 13:26:56 +0000 (14:26 +0100)]
Adopt LUA API.

9 years agoRework task processing.
Vsevolod Stakhov [Tue, 2 Jun 2015 13:19:55 +0000 (14:19 +0100)]
Rework task processing.

9 years agoRework and fix several issues in mime processing.
Vsevolod Stakhov [Tue, 2 Jun 2015 12:19:22 +0000 (13:19 +0100)]
Rework and fix several issues in mime processing.

9 years agoRework task errors and loading.
Vsevolod Stakhov [Tue, 2 Jun 2015 12:02:27 +0000 (13:02 +0100)]
Rework task errors and loading.

9 years agoReorganize structure of filter components.
Vsevolod Stakhov [Tue, 2 Jun 2015 11:37:22 +0000 (12:37 +0100)]
Reorganize structure of filter components.

9 years agoMove bits compatibility function.
Vsevolod Stakhov [Tue, 2 Jun 2015 10:54:32 +0000 (11:54 +0100)]
Move bits compatibility function.

9 years agoRework task states definition.
Vsevolod Stakhov [Tue, 2 Jun 2015 08:39:50 +0000 (09:39 +0100)]
Rework task states definition.

9 years agoPrepend the correct object.
Vsevolod Stakhov [Tue, 2 Jun 2015 14:39:08 +0000 (15:39 +0100)]
Prepend the correct object.

9 years agoAlign pointers by 16 bytes boundary.
Vsevolod Stakhov [Mon, 1 Jun 2015 16:14:56 +0000 (17:14 +0100)]
Align pointers by 16 bytes boundary.

Many operations on x86 are much faster if the pointers are aligned
properly. Obviously, that would increase memory usage slightly, however,
rspamd always prefers speed to compactness.

9 years agoCleanup crap from memory pool code.
Vsevolod Stakhov [Mon, 1 Jun 2015 16:04:21 +0000 (17:04 +0100)]
Cleanup crap from memory pool code.

9 years agoAvoid double free when extending HTTP message.
Vsevolod Stakhov [Fri, 29 May 2015 10:47:22 +0000 (11:47 +0100)]
Avoid double free when extending HTTP message.

9 years agoNormalize symbols in the cache.
Vsevolod Stakhov [Thu, 28 May 2015 17:22:12 +0000 (18:22 +0100)]
Normalize symbols in the cache.

9 years agoImplement frequency incrementing.
Vsevolod Stakhov [Thu, 28 May 2015 16:20:47 +0000 (17:20 +0100)]
Implement frequency incrementing.

9 years agoImplement cache resorting.
Vsevolod Stakhov [Thu, 28 May 2015 15:40:29 +0000 (16:40 +0100)]
Implement cache resorting.

9 years agoAdd routine to generate jittered timeout.
Vsevolod Stakhov [Thu, 28 May 2015 14:38:28 +0000 (15:38 +0100)]
Add routine to generate jittered timeout.

9 years agoFix symbols sorting.
Vsevolod Stakhov [Thu, 28 May 2015 13:27:49 +0000 (14:27 +0100)]
Fix symbols sorting.

9 years agoFix lua symbols registration.
Vsevolod Stakhov [Thu, 28 May 2015 12:34:45 +0000 (13:34 +0100)]
Fix lua symbols registration.

9 years agoFix iterations.
Vsevolod Stakhov [Thu, 28 May 2015 12:03:40 +0000 (13:03 +0100)]
Fix iterations.

9 years agoFix lua plugins.
Vsevolod Stakhov [Thu, 28 May 2015 11:59:13 +0000 (12:59 +0100)]
Fix lua plugins.

9 years agoAdopt internal modules.
Vsevolod Stakhov [Thu, 28 May 2015 11:25:25 +0000 (12:25 +0100)]
Adopt internal modules.

9 years agoFix registering of composites.
Vsevolod Stakhov [Thu, 28 May 2015 10:59:08 +0000 (11:59 +0100)]
Fix registering of composites.

9 years agoAdopt LUA API for symbols registration changes.
Vsevolod Stakhov [Thu, 28 May 2015 08:30:09 +0000 (09:30 +0100)]
Adopt LUA API for symbols registration changes.

9 years agoAssign parent weight and avg_time on load.
Vsevolod Stakhov [Thu, 28 May 2015 08:15:52 +0000 (09:15 +0100)]
Assign parent weight and avg_time on load.

9 years agoChange behaviour of callback and virtual symbols.
Vsevolod Stakhov [Thu, 28 May 2015 08:10:08 +0000 (09:10 +0100)]
Change behaviour of callback and virtual symbols.

Virtual symbols now have parent symbol that must contain callback.
Callback symbols might have no name as it's normally meaningless for
such symbols.

9 years agoRegistering symbols now returns their id.
Vsevolod Stakhov [Thu, 28 May 2015 07:44:40 +0000 (08:44 +0100)]
Registering symbols now returns their id.

9 years agoRefactor and unify function names.
Vsevolod Stakhov [Wed, 27 May 2015 16:33:56 +0000 (17:33 +0100)]
Refactor and unify function names.

9 years agoRestore `counters` command.
Vsevolod Stakhov [Wed, 27 May 2015 16:30:06 +0000 (17:30 +0100)]
Restore `counters` command.

9 years agoFix cache file open flags.
Vsevolod Stakhov [Wed, 27 May 2015 16:10:27 +0000 (17:10 +0100)]
Fix cache file open flags.

9 years agoFix cache open/close.
Vsevolod Stakhov [Wed, 27 May 2015 16:08:42 +0000 (17:08 +0100)]
Fix cache open/close.

9 years agoFix uintptr conversions.
Vsevolod Stakhov [Wed, 27 May 2015 16:01:30 +0000 (17:01 +0100)]
Fix uintptr conversions.

9 years agoFix states logic broken by the previous commit.
Vsevolod Stakhov [Wed, 27 May 2015 15:45:08 +0000 (16:45 +0100)]
Fix states logic broken by the previous commit.

9 years agoFix no delayed symbols processing.
Vsevolod Stakhov [Wed, 27 May 2015 15:20:32 +0000 (16:20 +0100)]
Fix no delayed symbols processing.

9 years agoFix sort function.
Vsevolod Stakhov [Wed, 27 May 2015 15:10:43 +0000 (16:10 +0100)]
Fix sort function.

9 years agoFix plugins registration.
Vsevolod Stakhov [Wed, 27 May 2015 14:33:40 +0000 (15:33 +0100)]
Fix plugins registration.

9 years agoRework cache validation.
Vsevolod Stakhov [Wed, 27 May 2015 13:33:59 +0000 (14:33 +0100)]
Rework cache validation.

9 years agoFix double free if multiple classifiers are defined.
Vsevolod Stakhov [Wed, 27 May 2015 10:08:41 +0000 (11:08 +0100)]
Fix double free if multiple classifiers are defined.

9 years agoMerge branch 'symbols-cache-rework'
Vsevolod Stakhov [Tue, 26 May 2015 21:28:24 +0000 (22:28 +0100)]
Merge branch 'symbols-cache-rework'

9 years agoAdopt the rest of the code.
Vsevolod Stakhov [Tue, 26 May 2015 21:27:39 +0000 (22:27 +0100)]
Adopt the rest of the code.

9 years agoAdopt lua API.
Vsevolod Stakhov [Tue, 26 May 2015 21:08:09 +0000 (22:08 +0100)]
Adopt lua API.

9 years agoRework symbols processing.
Vsevolod Stakhov [Tue, 26 May 2015 18:04:09 +0000 (19:04 +0100)]
Rework symbols processing.

9 years agoUpdate public API.
Vsevolod Stakhov [Tue, 26 May 2015 17:38:03 +0000 (18:38 +0100)]
Update public API.

9 years agoRework symbols registration.
Vsevolod Stakhov [Tue, 26 May 2015 17:36:41 +0000 (18:36 +0100)]
Rework symbols registration.

9 years agoRework structure.
Vsevolod Stakhov [Tue, 26 May 2015 17:17:35 +0000 (18:17 +0100)]
Rework structure.

9 years agoAnother step for cache init/deinit rework.
Vsevolod Stakhov [Tue, 26 May 2015 17:07:56 +0000 (18:07 +0100)]
Another step for cache init/deinit rework.

9 years agoIf replacement cannot be applied, just remove regexp.
Vsevolod Stakhov [Tue, 26 May 2015 16:37:45 +0000 (17:37 +0100)]
If replacement cannot be applied, just remove regexp.

9 years agoFix misprint in spamassassin plugin.
Vsevolod Stakhov [Tue, 26 May 2015 16:03:09 +0000 (17:03 +0100)]
Fix misprint in spamassassin plugin.

9 years agoRework initialization.
Vsevolod Stakhov [Tue, 26 May 2015 16:01:11 +0000 (17:01 +0100)]
Rework initialization.

9 years agoRework saving and load of symbols cache.
Vsevolod Stakhov [Tue, 26 May 2015 15:21:39 +0000 (16:21 +0100)]
Rework saving and load of symbols cache.

9 years agoUpdate copyright.
Vsevolod Stakhov [Tue, 26 May 2015 13:37:22 +0000 (14:37 +0100)]
Update copyright.

9 years agoRefactor events API.
Vsevolod Stakhov [Tue, 26 May 2015 13:00:03 +0000 (14:00 +0100)]
Refactor events API.

9 years agoFix i386 cpuid invocation.
Vsevolod Stakhov [Tue, 26 May 2015 11:33:04 +0000 (12:33 +0100)]
Fix i386 cpuid invocation.

9 years agoMerge branch 'sessions_rework'
Vsevolod Stakhov [Tue, 26 May 2015 11:29:18 +0000 (12:29 +0100)]
Merge branch 'sessions_rework'

9 years agoFix hashing.
Vsevolod Stakhov [Tue, 26 May 2015 11:28:56 +0000 (12:28 +0100)]
Fix hashing.

9 years agoAdd assertion to find bugs with events.
Vsevolod Stakhov [Tue, 26 May 2015 10:44:39 +0000 (11:44 +0100)]
Add assertion to find bugs with events.

9 years agoRemove useless locking.
Vsevolod Stakhov [Tue, 26 May 2015 10:41:17 +0000 (11:41 +0100)]
Remove useless locking.

9 years agoRemove threading support at all.
Vsevolod Stakhov [Tue, 26 May 2015 10:37:48 +0000 (11:37 +0100)]
Remove threading support at all.

9 years agoFix hashing.
Vsevolod Stakhov [Tue, 26 May 2015 09:09:03 +0000 (10:09 +0100)]
Fix hashing.

9 years agoFix lua session.
Vsevolod Stakhov [Tue, 26 May 2015 09:08:54 +0000 (10:08 +0100)]
Fix lua session.

9 years agoCall watchers on event group completion.
Vsevolod Stakhov [Tue, 26 May 2015 08:57:26 +0000 (09:57 +0100)]
Call watchers on event group completion.

9 years agoImpelement concept of watched events.
Vsevolod Stakhov [Tue, 26 May 2015 08:50:18 +0000 (09:50 +0100)]
Impelement concept of watched events.

9 years agoRemove async threads for now.
Vsevolod Stakhov [Tue, 26 May 2015 08:38:47 +0000 (09:38 +0100)]
Remove async threads for now.

They are anyway broken in the asynchronous world.

9 years agoUpdate copyright.
Vsevolod Stakhov [Tue, 26 May 2015 08:20:29 +0000 (09:20 +0100)]
Update copyright.

9 years agoAdd unit tests for b64 decoding and native encoding.
Vsevolod Stakhov [Mon, 25 May 2015 16:52:38 +0000 (17:52 +0100)]
Add unit tests for b64 decoding and native encoding.

9 years agoFix ownership issues for zero-copy decode.
Vsevolod Stakhov [Mon, 25 May 2015 16:52:14 +0000 (17:52 +0100)]
Fix ownership issues for zero-copy decode.

9 years agoAllow __len metamethod on rspamd{text}.
Vsevolod Stakhov [Mon, 25 May 2015 16:51:57 +0000 (17:51 +0100)]
Allow __len metamethod on rspamd{text}.

9 years agoAdd base64 decoding lua utility.
Vsevolod Stakhov [Mon, 25 May 2015 15:44:24 +0000 (16:44 +0100)]
Add base64 decoding lua utility.

9 years agoFix build on FreeBSD < 10.
Vsevolod Stakhov [Sun, 24 May 2015 17:00:41 +0000 (18:00 +0100)]
Fix build on FreeBSD < 10.

9 years agoSkip spaces at the beginning of mime message.
Vsevolod Stakhov [Sun, 24 May 2015 15:53:13 +0000 (16:53 +0100)]
Skip spaces at the beginning of mime message.

9 years agoDBL_ABUSE_REDIR should not have significant weight.
Vsevolod Stakhov [Sat, 23 May 2015 21:18:59 +0000 (22:18 +0100)]
DBL_ABUSE_REDIR should not have significant weight.

9 years agoAllow to split by lua_regexp rspamd{text} objects.
Vsevolod Stakhov [Sat, 23 May 2015 20:59:00 +0000 (21:59 +0100)]
Allow to split by lua_regexp rspamd{text} objects.

9 years agoAllow to specify custom stop pattern for lua_tcp.
Vsevolod Stakhov [Thu, 21 May 2015 17:26:20 +0000 (18:26 +0100)]
Allow to specify custom stop pattern for lua_tcp.

9 years agoRelease 0.9.4 0.9.4
Vsevolod Stakhov [Thu, 21 May 2015 13:28:22 +0000 (14:28 +0100)]
Release 0.9.4

* Fix critical bugs in tokenization algorithm
* Write unit tests for tokenization
* Add documentation for lua_tcp
* Switch off legacy tokenization by default.
* Fix critical bugs in words normalization
* Add lua bindings to tokenizer.
* Implement storing of HTTP headers inside task
* Add lua API to accerss HTTP headers data
* Implemented base64 encoding suitable for MIME
* Use caseless hash and equal functions for HTTP request headers.
* Improve debian architectures support (by @dottedmag)

Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>
9 years agoFix possible illegal memory access.
Vsevolod Stakhov [Thu, 21 May 2015 13:10:52 +0000 (14:10 +0100)]
Fix possible illegal memory access.

9 years agoMerge pull request #287 from dottedmag/master
Vsevolod Stakhov [Thu, 21 May 2015 13:20:31 +0000 (14:20 +0100)]
Merge pull request #287 from dottedmag/master

Debian changes for 0.9.4

9 years agoSwitch off legacy tokenization by default.
Vsevolod Stakhov [Thu, 21 May 2015 12:31:39 +0000 (13:31 +0100)]
Switch off legacy tokenization by default.

9 years agoDo not stem exceptions.
Vsevolod Stakhov [Thu, 21 May 2015 12:31:28 +0000 (13:31 +0100)]
Do not stem exceptions.

9 years agoUse not common name for tokenization exceptions.
Vsevolod Stakhov [Thu, 21 May 2015 11:52:54 +0000 (12:52 +0100)]
Use not common name for tokenization exceptions.

9 years agoFix memory issues with tokens normalization.
Vsevolod Stakhov [Thu, 21 May 2015 11:47:40 +0000 (12:47 +0100)]
Fix memory issues with tokens normalization.

9 years agoAdd more unit tests for tokenization.
Vsevolod Stakhov [Thu, 21 May 2015 09:23:52 +0000 (10:23 +0100)]
Add more unit tests for tokenization.

9 years agoMore fixes to tokenization.
Vsevolod Stakhov [Thu, 21 May 2015 09:23:41 +0000 (10:23 +0100)]
More fixes to tokenization.

9 years agoReverse list of exceptions.
Vsevolod Stakhov [Thu, 21 May 2015 09:23:26 +0000 (10:23 +0100)]
Reverse list of exceptions.

9 years agoAdd tests for tokenizer bug.
Vsevolod Stakhov [Wed, 20 May 2015 21:53:09 +0000 (22:53 +0100)]
Add tests for tokenizer bug.

9 years agoFix critical bug in tokenization logic.
Vsevolod Stakhov [Wed, 20 May 2015 21:52:46 +0000 (22:52 +0100)]
Fix critical bug in tokenization logic.

9 years agoAdd a simple unit test for tokenizer.
Vsevolod Stakhov [Wed, 20 May 2015 21:37:33 +0000 (22:37 +0100)]
Add a simple unit test for tokenizer.

9 years agoAdd lua bindings to tokenizer.
Vsevolod Stakhov [Wed, 20 May 2015 21:17:45 +0000 (22:17 +0100)]
Add lua bindings to tokenizer.