aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.c
Commit message (Collapse)AuthorAgeFilesLines
* * Allow to use other composites inside a composite's expressionVsevolod Stakhov2012-06-141-4/+56
| | | | Fix for cmake 2.6.
* More fixes to thread-safe processing.Vsevolod Stakhov2012-02-141-0/+17
|
* * More things to be thread-safe:Vsevolod Stakhov2012-02-131-0/+17
| | | | | | | - 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
* Fixes to threading (still incomplete).Vsevolod Stakhov2012-01-311-0/+20
|
* Fix critical bug with events checking during filters processing.Vsevolod Stakhov2012-01-311-0/+1
|
* More cleanups and fixes for compiler warnings.0.4.6Vsevolod Stakhov2011-12-201-3/+3
|
* * Finally get rid of stupid savepoints system and migrate to async events ↵Vsevolod Stakhov2011-12-141-53/+2
| | | | | | logic completely Fix lua redis library.
* Insert symbols counting their weights with respect to grow_factor.Vsevolod Stakhov2011-08-171-1/+2
|
* Make hash traversing more safe by using reference count.Vsevolod Stakhov2011-08-051-2/+2
| | | | Update to 0.4.2
* * Fix build under CentOS 5 with old glib 2.12Vsevolod Stakhov2011-07-291-0/+2
| | | | | * Fix build of rspamd with CMAKE_BINARY_DIR differs from CMAKE_SOURCE_DIR Rework include style.
* Fix very bad bug in a memory pool allocator.Vsevolod Stakhov2011-07-261-19/+3
| | | | Speed up inserting symbols by hashing them.
* * Add start script for red hat compatible systemsVsevolod Stakhov2011-07-201-35/+2
| | | | | | | Add descriptions for some rspamd API functions (no functional changes). --HG-- rename : linux/rspamd => linux/rspamd_debian.in
* * Add learn_spam/learn_ham interface to librspamdclient and to rspamcVsevolod Stakhov2011-07-141-2/+2
| | | | | * Improve logic of io dispatcher restoration Remove correction factor from bayes as it leads to classify errors.
* Change logic of params inside compare parts distance.Vsevolod Stakhov2011-07-141-9/+49
| | | | | During learning and classifying compare parts using new algorithm. Raise similarity factor.
* * First commit to implement multi-statfile filter system with new learning ↵Vsevolod Stakhov2011-07-121-0/+83
| | | | mechanizm (untested yet)
* Fix phishing detection with img flag.Vsevolod Stakhov2011-07-111-10/+17
| | | | | | Handle unclosed HTML tags properly. Remove warnings for types on 32 bit archs. Do not touch grow factor many times when one shot mode is turned on.
* * Improve performance of settings lookupVsevolod Stakhov2011-06-301-2/+5
|
* * Add correcting factor to statistics.Vsevolod Stakhov2011-06-281-3/+27
| | | | | | Now learning increments version of a statfile. Avoid learning and classifying of similar text parts if a message has 2 text parts. Several fixes to statistics.
* * Welcome 0.4.0Vsevolod Stakhov2011-06-241-4/+6
| | | | | | | | | | | | | | | | | | Uncompatible changes: - Statistics is uncompatible in utf8 mode Major changes: - Improved utf8 mode - Convert all characters to lowercase in statistics - Skip URL's in statistics - Improve speed of bayes classifier by using integer arithmetics - Fixed statfiles synchronization that was broken for a long time - Synchronization is now configurable Minor changes: - Bugfixes - Removed some of legacy code - Types polishing
* Write logbuf safely.0.3.14Vsevolod Stakhov2011-06-101-1/+1
|
* * Skip short utf words in statisticsVsevolod Stakhov2011-06-031-3/+5
|
* * Major cleanup of cmake build systemVsevolod Stakhov2011-05-061-6/+3
| | | | | | * Add initial version of statshow utility for statfiles debugging * Add debugging for statistics * Remove unused utilities
* * Add ability to learn rspamd via worker (without password)0.3.11Vsevolod Stakhov2011-03-311-0/+109
|
* Fix one shot behaviour.Vsevolod Stakhov2011-03-181-4/+5
|
* Try to fix memory issues.Vsevolod Stakhov2011-03-021-18/+25
|
* * Add options section into config to organize optionsVsevolod Stakhov2011-02-221-1/+1
| | | | | | | * Add one_shot option for avoiding inserting several results from one rule Fix parsing of headers with \t symbol [1] Reported by: Victor Ustugov [1]
* * Add ability to save symbols that are inside composites with '-' flag.Vsevolod Stakhov2011-02-191-4/+18
| | | | | | | Remove warnings from rspamc. Add new rules [1] Submitted by: Victor Ustugov [1]
* * Add ability to specify symbols in composites to avoid their weights removing.Vsevolod Stakhov2011-02-181-21/+55
|
* Remove symbols that are included into a composite when all composites are ↵Vsevolod Stakhov2011-02-181-2/+23
| | | | processed.
* * Add function regexp_occurs_number that allows to test how much occurs of ↵Vsevolod Stakhov2011-02-181-21/+44
| | | | | | | | | regexp can be found in a message Fix composites logic. [1] Fix composites registration from lua. [1] Reported by: Victor Ustugov [1]
* * Add ability to specify 'S' flag to regexp that means that headers checks ↵Vsevolod Stakhov2011-02-151-1/+1
| | | | | | must be case sensitive * Add lua function message:get_header_strong
* Fix bug with several metrics output. [1]Vsevolod Stakhov2011-02-141-1/+1
| | | | | | Install surbl-whitelist. [1] [1] Reported by Victor Ustugov
* * Add Subject header to statisticsVsevolod Stakhov2010-12-241-0/+13
| | | | * Write log message about symbols that are removed when composite symbol is inserted
* Fixed adding action to metric.Vsevolod Stakhov2010-10-281-1/+3
|
* Add add_header action to smtp proxy.Vsevolod Stakhov2010-10-261-1/+0
| | | | 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-0/+74
| | | | | | | | - 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 types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-15/+15
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Fix shared usage of statfilesVsevolod Stakhov2010-09-161-0/+1
| | | | | | * Add invalidation of statfiles in case of learning, so now statfiles are invalidated in about a minute after learning * This should fix shared usage of statfile pool by several processes
* * Add post filters to lua API - filters that would be called after all ↵Vsevolod Stakhov2010-08-251-17/+14
| | | | | | | | message's processing * Add ability to check for specified symbol in task results from lua * Add ability to check for metric's results from lua * Add ability to learn specified statfile form lua
* * Fixes to winnow learningVsevolod Stakhov2010-08-051-1/+1
|
* * Fix wirting message id during fuzzy_add commandVsevolod Stakhov2010-08-041-1/+1
| | | | * Display weight of symbols correctly
* * Improve logic of learning messages: do not learn more than specific thresholdVsevolod Stakhov2010-08-021-1/+1
| | | | * Fix inserting results for symbols that were incorrectly (for example more than 1 time) defined in config file
* * Fix inserting composite symbolVsevolod Stakhov2010-08-021-5/+1
| | | | * Fix output of log line
* * Add rspamd_log variable to lua plugins to access logging functionsVsevolod Stakhov2010-07-251-1/+1
| | | | | | | | | * 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
* * Use rspamd_snprintf instead of libc oneVsevolod Stakhov2010-06-241-5/+5
|
* * Incorrectly removed in previous commitVsevolod Stakhov2010-06-171-0/+1
|
* * Change metric logicVsevolod Stakhov2010-06-161-153/+81
| | | | | | | * Completely remove lex/yacc readers for config * Make common sense of metric/action and symbols * Sync changes with all plugins TODO: add this to documentation
* * Check messages received via smtp proxyVsevolod Stakhov2010-06-101-1/+6
| | | | | | * Add support for sendfile in io dispatcher * Fix issues with compatibility of worker_task and smtp proxy * Proxy DATA command
* * New symbols sorter:Vsevolod Stakhov2010-05-281-6/+19
| | | | | | | - add ability to have dynamic rules inside items cache - make 3 types of rules: negative, dynamic and static - make logic of cache more simple by using glib lists instead of arrays - do checks of symbols in more logically correct way (negative->dynamic->static)
* * Add ability to pass all filters by using flag -p in case of rspamc or ↵Vsevolod Stakhov2010-04-261-2/+6
| | | | adding header Pass: all in rspamc protocol