aboutsummaryrefslogtreecommitdiffstats
path: root/src/expressions.c
Commit message (Collapse)AuthorAgeFilesLines
* Forgot in previous commit.Vsevolod Stakhov2012-10-121-1/+1
|
* * Use murmur hash for all hashes as it is more efficient and provides more ↵Vsevolod Stakhov2012-10-081-2/+2
| | | | | | uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification.
* Another debian license fix.Vsevolod Stakhov2012-09-101-1/+1
| | | | | Add apache license for regexp that were delivered from SpamAssassin project. Fix debian/copyright for src/dns.c.
* Update copyright (required by debian).Vsevolod Stakhov2012-09-041-3/+3
|
* * Rework thread pools locking logic to avoid global lua mutex usage.Vsevolod Stakhov2012-08-221-13/+3
| | | | | | Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries.
* Separate librspamdserver API from plugins and workers functions.Vsevolod Stakhov2012-03-011-592/+4
| | | | Make tests compileable again.
* More fixes to thread-safe processing.Vsevolod Stakhov2012-02-141-27/+0
|
* Make compiler happy in several cases, remove warnings.Vsevolod Stakhov2011-12-201-4/+4
|
* Fix bug in compare_content_param function.Vsevolod Stakhov2011-10-241-21/+23
|
* Fix signness in arithmetic operations.Vsevolod Stakhov2011-08-041-1/+1
|
* Add workaround for clang under linux.Vsevolod Stakhov2011-07-211-1/+1
| | | | Fix problems found by static analyzing.
* * Add start script for red hat compatible systemsVsevolod Stakhov2011-07-201-0/+2
| | | | | | | Add descriptions for some rspamd API functions (no functional changes). --HG-- rename : linux/rspamd => linux/rspamd_debian.in
* Adjust interval.Vsevolod Stakhov2011-07-141-2/+2
|
* Fix multiply compare_parts_distance calls.Vsevolod Stakhov2011-07-141-2/+12
|
* Ignore arguments order in compare_parts_distance function.Vsevolod Stakhov2011-07-141-2/+2
|
* Change logic of params inside compare parts distance.Vsevolod Stakhov2011-07-141-2/+2
| | | | | During learning and classifying compare parts using new algorithm. Raise similarity factor.
* * Add new algorithm based on diff algorithm to compare relatively short text ↵Vsevolod Stakhov2011-07-131-1/+7
| | | | parts
* * Add second argument to compare_parts_distance function so it can be used ↵Vsevolod Stakhov2011-07-131-21/+37
| | | | as interval: arg2 <= distance <= arg1
* Cache data of parts distance function to speed up multiply rules with such ↵Vsevolod Stakhov2011-07-121-1/+22
| | | | function.
* * Fixes to fuzzy hashing logic, skip urls while estimating fuzzy hashVsevolod Stakhov2011-06-231-1/+1
| | | | | Fix tags stripping. Fix phishing checks (ignore img tags).
* * Add more convinient operations into expressions ('and', 'or', 'not')Vsevolod Stakhov2011-06-061-19/+87
|
* * Fix error in raw headers parsingVsevolod Stakhov2011-05-241-1/+1
| | | | * Improve speed of raw headers access
* * Rework build process:Vsevolod Stakhov2011-05-101-6/+0
| | | | | | | | | | - add librspamdserver - link this library to all daemons and utils of rspamd - use subdirectories more often * Rework global variables logic - move them to the main process * Fix logging to handle utf-8 correctly * Add statshow utility and make it working * Move printf functions to separate source file
* * Add new lua module regexp for using glib regular expressions (pcre compatible)Vsevolod Stakhov2011-02-151-2/+15
|
* * Add ability to specify 'S' flag to regexp that means that headers checks ↵Vsevolod Stakhov2011-02-151-1/+6
| | | | | | must be case sensitive * Add lua function message:get_header_strong
* Call lua functions correctly as well.Vsevolod Stakhov2011-02-081-1/+1
|
* Avoid gmime asserts if no recipients are passed from MTA.Vsevolod Stakhov2011-01-211-0/+3
|
* Make own strlcpy that does not calculate remaining string length (faster and ↵Vsevolod Stakhov2010-11-161-5/+5
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* Add add_header action to smtp proxy.Vsevolod Stakhov2010-10-261-0/+1
| | | | In raw mode scan stripped html parts when regexp are not 'raw'.
* * Add ability to recursive scan over multipart's parts for functions:Vsevolod Stakhov2010-10-201-86/+241
| | | | | | | | - content_type_is_type - content_type_is_subtype - content_type_compare_param - content_type_has_param * Add ability to specify any of actions in user's settings, not only reject.
* Fixes bugs found with clang-static analyser.Vsevolod Stakhov2010-10-111-7/+9
| | | | | Strictly follow c99 standart. Turn on pedantic c99 checks.
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-61/+61
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Add trie interface to lua apiVsevolod Stakhov2010-09-221-0/+4
|
* * Fix assertion while extracting internet addressVsevolod Stakhov2010-08-261-6/+8
|
* * Ignore rfc822 group addressesVsevolod Stakhov2010-08-191-6/+11
|
* * Fix error with writing symbols cache fileVsevolod Stakhov2010-07-281-8/+8
| | | | * Fix error while working in utf mode when raw regexps was not created properly
* * Another try to save regexps in cache correctlyVsevolod Stakhov2010-07-281-2/+3
| | | | * Improve test logs for regexps
* * More debugVsevolod Stakhov2010-07-251-0/+1
|
* * Add rspamd_log variable to lua plugins to access logging functionsVsevolod Stakhov2010-07-251-0/+16
| | | | | | | | | * Each part in rspamd task now can have parent part * Check for parts distance only for multipart/alternative subparts * Do not check attachements even if they are text (but attached as file) * Do not die if write (2) returned ENOSPACE while doing logging, turn on throttling mode instead (1 write try in a second) * Add ability to turn on debug for specific symbols * Add ability to configure dns timeouts and dns retransmits in config file
* * Save in regexp cache the whole regexp with header name (if exists) and ↵Vsevolod Stakhov2010-07-231-1/+2
| | | | | | with flags This issue can be a reason why similar regexp are NOT working for different headers
* * Empty and non-empty parts are allways differentVsevolod Stakhov2010-07-201-0/+4
|
* * Do not compare empty partsVsevolod Stakhov2010-07-201-4/+6
|
* * Assume 7bit as default transfer encodingVsevolod Stakhov2010-07-161-1/+9
|
* * Add more debug to comparing parts distance functionVsevolod Stakhov2010-07-161-2/+4
| | | | * Write action even if message has no symbols
* * Add ability to set metric's action from config fileVsevolod Stakhov2010-07-151-1/+1
| | | | | * Fix bug with writing garbadge if message has no urls or no messages * Fix bug with incorrect behaviour of compare_parts_distance function
* * Add ability to test regexp with 'T' flagVsevolod Stakhov2010-07-061-0/+5
| | | | | | | * Write more code for DNS resolver: - initial RR parser - name compression - replies handler
* * Remove some warningsVsevolod Stakhov2010-05-311-3/+3
|
* * Fix more gmime2.4 issuesVsevolod Stakhov2010-05-311-24/+27
|
* * Fix strict aliasing while compiling with optimizationVsevolod Stakhov2010-05-311-1/+2
| | | | | * Fix tanhl detection for platforms that have not implementation of it * Remove several compile warnings
* * Fix build with gmime24Vsevolod Stakhov2010-05-271-5/+43
|