]> git.ipfire.org Git - thirdparty/rspamd.git/log
thirdparty/rspamd.git
10 years agoAllow getting message queue ID from Lua 248/head
Andrew Lewis [Thu, 2 Apr 2015 11:00:33 +0000 (13:00 +0200)] 
Allow getting message queue ID from Lua

10 years agoMerge pull request #245 from fatalbanana/master
Vsevolod Stakhov [Wed, 1 Apr 2015 16:49:31 +0000 (17:49 +0100)] 
Merge pull request #245 from fatalbanana/master

Ah shucks: Change order of calls to avoid sending error messages to logs

10 years agoFix words normalization.
Vsevolod Stakhov [Wed, 1 Apr 2015 16:48:23 +0000 (17:48 +0100)] 
Fix words normalization.

10 years agoRBL: Change order of calls to avoid sending error messages to logs 245/head
Andrew Lewis [Wed, 1 Apr 2015 16:34:39 +0000 (18:34 +0200)] 
RBL: Change order of calls to avoid sending error messages to logs

10 years agoMerge pull request #243 from fatalbanana/master
Vsevolod Stakhov [Wed, 1 Apr 2015 16:25:38 +0000 (17:25 +0100)] 
Merge pull request #243 from fatalbanana/master

RBL: change behaviour of whitelists

10 years agoFix memory leak in keys management.
Vsevolod Stakhov [Wed, 1 Apr 2015 16:17:58 +0000 (17:17 +0100)] 
Fix memory leak in keys management.

10 years agoRBL: Add missing is_whitelist = true setting 243/head
Andrew Lewis [Wed, 1 Apr 2015 16:01:27 +0000 (18:01 +0200)] 
RBL: Add missing is_whitelist = true setting

10 years agoAdd special case for valgrind to avoid early children termination.
Vsevolod Stakhov [Wed, 1 Apr 2015 15:56:05 +0000 (16:56 +0100)] 
Add special case for valgrind to avoid early children termination.

10 years agoMemory leak.
Vsevolod Stakhov [Wed, 1 Apr 2015 15:39:39 +0000 (16:39 +0100)] 
Memory leak.

10 years agoRBL: change behaviour of whitelists
Andrew Lewis [Wed, 1 Apr 2015 15:31:39 +0000 (17:31 +0200)] 
RBL: change behaviour of whitelists

10 years agoZero ip->addr structure field to avoid corruption.
Vsevolod Stakhov [Wed, 1 Apr 2015 15:23:46 +0000 (16:23 +0100)] 
Zero ip->addr structure field to avoid corruption.

10 years agoFix LRU hash destroy.
Vsevolod Stakhov [Wed, 1 Apr 2015 15:09:08 +0000 (16:09 +0100)] 
Fix LRU hash destroy.

10 years agoFix dynamic arrays usage in SPF module.
Vsevolod Stakhov [Wed, 1 Apr 2015 15:06:14 +0000 (16:06 +0100)] 
Fix dynamic arrays usage in SPF module.

10 years agoExplicitly set address if cannot parse received header.
Vsevolod Stakhov [Wed, 1 Apr 2015 14:38:38 +0000 (15:38 +0100)] 
Explicitly set address if cannot parse received header.

10 years agoDo not reverse received headers.
Vsevolod Stakhov [Wed, 1 Apr 2015 14:35:23 +0000 (15:35 +0100)] 
Do not reverse received headers.

10 years agoParse more forms of IP addresses.
Vsevolod Stakhov [Wed, 1 Apr 2015 14:33:46 +0000 (15:33 +0100)] 
Parse more forms of IP addresses.

[::1]:port
[::1]
127.0.0.1:port

10 years agoUpdate remain on tokenization.
Vsevolod Stakhov [Wed, 1 Apr 2015 14:19:27 +0000 (15:19 +0100)] 
Update remain on tokenization.

10 years agoAdd new UTF8 tokenizer.
Vsevolod Stakhov [Wed, 1 Apr 2015 13:54:57 +0000 (14:54 +0100)] 
Add new UTF8 tokenizer.

10 years agoUse faster non-validating g_utf8_get_char.
Vsevolod Stakhov [Wed, 1 Apr 2015 13:53:03 +0000 (14:53 +0100)] 
Use faster non-validating g_utf8_get_char.

10 years agoAdd 'compat' option for classifier.
Vsevolod Stakhov [Wed, 1 Apr 2015 13:04:21 +0000 (14:04 +0100)] 
Add 'compat' option for classifier.

10 years agoCheck mmapped files compatibility.
Vsevolod Stakhov [Wed, 1 Apr 2015 12:50:40 +0000 (13:50 +0100)] 
Check mmapped files compatibility.

10 years agoAdd compatibility layer for tokenization.
Vsevolod Stakhov [Wed, 1 Apr 2015 12:21:26 +0000 (13:21 +0100)] 
Add compatibility layer for tokenization.

10 years agoRework osb configuration.
Vsevolod Stakhov [Wed, 1 Apr 2015 12:05:52 +0000 (13:05 +0100)] 
Rework osb configuration.

10 years agoSave classifier configuration inside statfile config.
Vsevolod Stakhov [Wed, 1 Apr 2015 11:12:53 +0000 (12:12 +0100)] 
Save classifier configuration inside statfile config.

10 years agoFix double allocation of fuzzy backend structure.
Vsevolod Stakhov [Wed, 1 Apr 2015 09:52:15 +0000 (10:52 +0100)] 
Fix double allocation of fuzzy backend structure.

10 years agoInitialize values for atom priorities.
Vsevolod Stakhov [Wed, 1 Apr 2015 09:49:53 +0000 (10:49 +0100)] 
Initialize values for atom priorities.

10 years agoSupport [if-unset: blah]
Vsevolod Stakhov [Tue, 31 Mar 2015 13:13:10 +0000 (14:13 +0100)] 
Support [if-unset: blah]

10 years agoSupport 'name' extension for SA rules.
Vsevolod Stakhov [Tue, 31 Mar 2015 13:03:09 +0000 (14:03 +0100)] 
Support 'name' extension for SA rules.

10 years agoAdd some more SA and perl compat for regexps.
Vsevolod Stakhov [Tue, 31 Mar 2015 12:46:57 +0000 (13:46 +0100)] 
Add some more SA and perl compat for regexps.

10 years agoAdd some guards to protect pcre_jit fast path.
Vsevolod Stakhov [Tue, 31 Mar 2015 12:35:07 +0000 (13:35 +0100)] 
Add some guards to protect pcre_jit fast path.

10 years agoDo not convert utf to utf.
Vsevolod Stakhov [Tue, 31 Mar 2015 12:27:17 +0000 (13:27 +0100)] 
Do not convert utf to utf.

10 years agoAdd function to test whether textpart is utf.
Vsevolod Stakhov [Tue, 31 Mar 2015 12:27:00 +0000 (13:27 +0100)] 
Add function to test whether textpart is utf.

10 years agoAllow raw matching of regexps from lua.
Vsevolod Stakhov [Tue, 31 Mar 2015 12:04:34 +0000 (13:04 +0100)] 
Allow raw matching of regexps from lua.

10 years agoSkip comments at the end of SA rules.
Vsevolod Stakhov [Tue, 31 Mar 2015 11:25:17 +0000 (12:25 +0100)] 
Skip comments at the end of SA rules.

10 years agoAdd guards for invalid rules.
Vsevolod Stakhov [Tue, 31 Mar 2015 11:16:54 +0000 (12:16 +0100)] 
Add guards for invalid rules.

10 years agoFollow SA conventions about header rules.
Vsevolod Stakhov [Tue, 31 Mar 2015 11:03:07 +0000 (12:03 +0100)] 
Follow SA conventions about header rules.

10 years agoRework header regexps in SA.
Vsevolod Stakhov [Tue, 31 Mar 2015 10:52:42 +0000 (11:52 +0100)] 
Rework header regexps in SA.

10 years agoFix score calculations.
Vsevolod Stakhov [Tue, 31 Mar 2015 10:52:34 +0000 (11:52 +0100)] 
Fix score calculations.

10 years agoFix case if there is no SPF record for a domain.
Vsevolod Stakhov [Tue, 31 Mar 2015 09:51:03 +0000 (10:51 +0100)] 
Fix case if there is no SPF record for a domain.

10 years agoSupport single rules of SA.
Vsevolod Stakhov [Mon, 30 Mar 2015 21:58:38 +0000 (22:58 +0100)] 
Support single rules of SA.

10 years agoAdd information about json control block.
Vsevolod Stakhov [Mon, 30 Mar 2015 19:12:18 +0000 (20:12 +0100)] 
Add information about json control block.

10 years agoMarkdown portability.
Vsevolod Stakhov [Mon, 30 Mar 2015 18:50:55 +0000 (19:50 +0100)] 
Markdown portability.

10 years agoAdd protocol description.
Vsevolod Stakhov [Mon, 30 Mar 2015 16:48:06 +0000 (17:48 +0100)] 
Add protocol description.

10 years agoMerge branch 'json_control'
Vsevolod Stakhov [Mon, 30 Mar 2015 15:35:18 +0000 (16:35 +0100)] 
Merge branch 'json_control'

10 years agoFix wrong usage of iterators.
Vsevolod Stakhov [Mon, 30 Mar 2015 15:34:29 +0000 (16:34 +0100)] 
Fix wrong usage of iterators.

10 years agoAdd control section parsing.
Vsevolod Stakhov [Mon, 30 Mar 2015 15:20:00 +0000 (16:20 +0100)] 
Add control section parsing.

10 years agoMake section functions public.
Vsevolod Stakhov [Mon, 30 Mar 2015 15:19:47 +0000 (16:19 +0100)] 
Make section functions public.

10 years agoIntroduce default sections in rcl parser.
Vsevolod Stakhov [Mon, 30 Mar 2015 14:44:39 +0000 (15:44 +0100)] 
Introduce default sections in rcl parser.

10 years agoFix logger setup.
Vsevolod Stakhov [Mon, 30 Mar 2015 14:29:59 +0000 (15:29 +0100)] 
Fix logger setup.

10 years agoAdd routines to parse mime addresses from ucl.
Vsevolod Stakhov [Mon, 30 Mar 2015 14:26:35 +0000 (15:26 +0100)] 
Add routines to parse mime addresses from ucl.

10 years agoAdd function to parse inet address.
Vsevolod Stakhov [Mon, 30 Mar 2015 14:04:56 +0000 (15:04 +0100)] 
Add function to parse inet address.

10 years agoMake RCL parser more abstract.
Vsevolod Stakhov [Mon, 30 Mar 2015 13:58:41 +0000 (14:58 +0100)] 
Make RCL parser more abstract.

10 years agoLoad control chunk.
Vsevolod Stakhov [Mon, 30 Mar 2015 12:41:32 +0000 (13:41 +0100)] 
Load control chunk.

10 years agoAdd ability to append control json within rspamd request.
Vsevolod Stakhov [Mon, 30 Mar 2015 12:15:14 +0000 (13:15 +0100)] 
Add ability to append control json within rspamd request.

10 years agoAdd workaround to be compatible with gmime 2.2.
Vsevolod Stakhov [Mon, 30 Mar 2015 11:14:41 +0000 (12:14 +0100)] 
Add workaround to be compatible with gmime 2.2.

10 years agoUse advanced priorities when planning evaluation.
Vsevolod Stakhov [Sun, 29 Mar 2015 21:03:14 +0000 (22:03 +0100)] 
Use advanced priorities when planning evaluation.

10 years agoImplement resorting.
Vsevolod Stakhov [Sun, 29 Mar 2015 20:56:05 +0000 (21:56 +0100)] 
Implement resorting.

10 years agoAdd priority resort logic.
Vsevolod Stakhov [Sun, 29 Mar 2015 20:55:13 +0000 (21:55 +0100)] 
Add priority resort logic.

10 years agoUse expressions process flags.
Vsevolod Stakhov [Sat, 28 Mar 2015 23:04:59 +0000 (23:04 +0000)] 
Use expressions process flags.

10 years agoAdd flags to expressions processing and noopt flag.
Vsevolod Stakhov [Sat, 28 Mar 2015 23:00:11 +0000 (23:00 +0000)] 
Add flags to expressions processing and noopt flag.

10 years agoAdd some preliminary priorities for mime expressions.
Vsevolod Stakhov [Sat, 28 Mar 2015 22:36:28 +0000 (22:36 +0000)] 
Add some preliminary priorities for mime expressions.

10 years agoFix dereferencing of NULL pointer.
Vsevolod Stakhov [Sat, 28 Mar 2015 11:08:14 +0000 (11:08 +0000)] 
Fix dereferencing of NULL pointer.

10 years agoStop providing fake ip by rspamc.
Vsevolod Stakhov [Sat, 28 Mar 2015 11:02:42 +0000 (11:02 +0000)] 
Stop providing fake ip by rspamc.

10 years agoParse IP from the first received header if not specified by protocol.
Vsevolod Stakhov [Sat, 28 Mar 2015 10:57:59 +0000 (10:57 +0000)] 
Parse IP from the first received header if not specified by protocol.

10 years agoPreserve order of received headers.
Vsevolod Stakhov [Sat, 28 Mar 2015 10:51:31 +0000 (10:51 +0000)] 
Preserve order of received headers.

10 years agoAdd no-ip flag for task structure.
Vsevolod Stakhov [Sat, 28 Mar 2015 10:48:12 +0000 (10:48 +0000)] 
Add no-ip flag for task structure.

10 years agoFix AST cleanup.
Vsevolod Stakhov [Fri, 27 Mar 2015 14:25:27 +0000 (14:25 +0000)] 
Fix AST cleanup.

10 years agoOptimize expressions earlier.
Vsevolod Stakhov [Fri, 27 Mar 2015 14:14:47 +0000 (14:14 +0000)] 
Optimize expressions earlier.

10 years agoUse AST for expressions processing.
Vsevolod Stakhov [Fri, 27 Mar 2015 14:04:04 +0000 (14:04 +0000)] 
Use AST for expressions processing.

10 years agoAdd AST processing routines.
Vsevolod Stakhov [Fri, 27 Mar 2015 12:51:37 +0000 (12:51 +0000)] 
Add AST processing routines.

10 years agoMore to priorities optimization.
Vsevolod Stakhov [Fri, 27 Mar 2015 00:02:48 +0000 (00:02 +0000)] 
More to priorities optimization.

10 years agoFix sorting.
Vsevolod Stakhov [Thu, 26 Mar 2015 23:43:59 +0000 (23:43 +0000)] 
Fix sorting.

10 years agoFix order of N-ary operators merging.
Vsevolod Stakhov [Thu, 26 Mar 2015 23:38:06 +0000 (23:38 +0000)] 
Fix order of N-ary operators merging.

10 years agoFix memory corruption caused by array realloc.
Vsevolod Stakhov [Thu, 26 Mar 2015 23:26:59 +0000 (23:26 +0000)] 
Fix memory corruption caused by array realloc.

10 years agoImplement AST nodes branch sorting.
Vsevolod Stakhov [Thu, 26 Mar 2015 16:34:36 +0000 (16:34 +0000)] 
Implement AST nodes branch sorting.

10 years agoPrint expression using AST.
Vsevolod Stakhov [Thu, 26 Mar 2015 16:03:01 +0000 (16:03 +0000)] 
Print expression using AST.

10 years agoFix expressions order.
Vsevolod Stakhov [Thu, 26 Mar 2015 15:57:55 +0000 (15:57 +0000)] 
Fix expressions order.

10 years agoAdd AST parsing.
Vsevolod Stakhov [Thu, 26 Mar 2015 15:44:29 +0000 (15:44 +0000)] 
Add AST parsing.

10 years agoAdd helper functions.
Vsevolod Stakhov [Thu, 26 Mar 2015 15:13:08 +0000 (15:13 +0000)] 
Add helper functions.

10 years agoFix socket length calculations for UDP sockets.
Vsevolod Stakhov [Thu, 26 Mar 2015 14:13:31 +0000 (14:13 +0000)] 
Fix socket length calculations for UDP sockets.

10 years agoFix composites processing.
Vsevolod Stakhov [Thu, 26 Mar 2015 13:54:01 +0000 (13:54 +0000)] 
Fix composites processing.

10 years agoInitialize variable.
Vsevolod Stakhov [Wed, 25 Mar 2015 22:25:40 +0000 (22:25 +0000)] 
Initialize variable.

10 years agoCache atom results.
Vsevolod Stakhov [Wed, 25 Mar 2015 21:52:39 +0000 (21:52 +0000)] 
Cache atom results.

10 years agoAdd support for 'full' and 'uri' rules.
Vsevolod Stakhov [Wed, 25 Mar 2015 21:48:07 +0000 (21:48 +0000)] 
Add support for 'full' and 'uri' rules.

10 years agoRewrite SA plugin for the new expressions.
Vsevolod Stakhov [Wed, 25 Mar 2015 18:26:23 +0000 (18:26 +0000)] 
Rewrite SA plugin for the new expressions.

10 years agoAnother tricky case of test.
Vsevolod Stakhov [Wed, 25 Mar 2015 18:24:58 +0000 (18:24 +0000)] 
Another tricky case of test.

10 years agoDo not store zeroes in hash table.
Vsevolod Stakhov [Wed, 25 Mar 2015 18:23:24 +0000 (18:23 +0000)] 
Do not store zeroes in hash table.

10 years agoFix removing of elements from the stack.
Vsevolod Stakhov [Wed, 25 Mar 2015 18:23:06 +0000 (18:23 +0000)] 
Fix removing of elements from the stack.

10 years agoFix adding values to the cache.
Vsevolod Stakhov [Wed, 25 Mar 2015 18:12:10 +0000 (18:12 +0000)] 
Fix adding values to the cache.

10 years agoAdd lua interfaces to re cache.
Vsevolod Stakhov [Wed, 25 Mar 2015 17:43:58 +0000 (17:43 +0000)] 
Add lua interfaces to re cache.

10 years agoUse cumulative moving average for time values.
Vsevolod Stakhov [Wed, 25 Mar 2015 00:01:34 +0000 (00:01 +0000)] 
Use cumulative moving average for time values.

The previous version with exponential moving average cannot work well
with the rspamd usage pattern.

10 years agoRework sorting logic of symbols cache.
Vsevolod Stakhov [Wed, 25 Mar 2015 00:00:59 +0000 (00:00 +0000)] 
Rework sorting logic of symbols cache.

Use minimizing execution time greedy pattern for that purpose.

10 years agoFix processing of some stupid expressions.
Vsevolod Stakhov [Tue, 24 Mar 2015 22:53:17 +0000 (22:53 +0000)] 
Fix processing of some stupid expressions.

10 years agoAllocate enough space for two bits per composite.
Vsevolod Stakhov [Tue, 24 Mar 2015 18:04:39 +0000 (18:04 +0000)] 
Allocate enough space for two bits per composite.

10 years agoFix some priority issues in expressions.
Vsevolod Stakhov [Tue, 24 Mar 2015 17:30:00 +0000 (17:30 +0000)] 
Fix some priority issues in expressions.

10 years agoFix some border cases while parsing expressions.
Vsevolod Stakhov [Tue, 24 Mar 2015 16:57:32 +0000 (16:57 +0000)] 
Fix some border cases while parsing expressions.

10 years agoFix composite atoms parsing.
Vsevolod Stakhov [Tue, 24 Mar 2015 16:43:27 +0000 (16:43 +0000)] 
Fix composite atoms parsing.

10 years agoOutput error messages when a composite cannot be parsed.
Vsevolod Stakhov [Tue, 24 Mar 2015 16:39:04 +0000 (16:39 +0000)] 
Output error messages when a composite cannot be parsed.

10 years agoUse some more advanced heuristic to find packages.
Vsevolod Stakhov [Tue, 24 Mar 2015 15:58:54 +0000 (15:58 +0000)] 
Use some more advanced heuristic to find packages.

10 years agoFix rspamd_parts_distance function.
Vsevolod Stakhov [Tue, 24 Mar 2015 14:02:41 +0000 (14:02 +0000)] 
Fix rspamd_parts_distance function.