aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
Commit message (Collapse)AuthorAgeFilesLines
* * Avoid DoS while sending a message with a lot of recipients in 'To' header.Vsevolod Stakhov2012-05-281-0/+17
| | | | | Fix possible deadlock in lua_redis. Version is now 0.4.8 as there are enough changes.
* * Fix spf plugin that was broken in 0.4.7Vsevolod Stakhov2012-04-201-0/+23
| | | | * Add partial ipv6 support for some rspamd modules.
* * Add ratelimit pluginVsevolod Stakhov2012-04-061-0/+24
| | | | Some polishing of lua task api.
* * Implement pre-filters that realizes concepts to check mail by some ↵Vsevolod Stakhov2012-03-301-0/+25
| | | | | | | | absolute values like: - greylisting - DNS BL/WL - ratelimits
* * More things to be thread-safe:Vsevolod Stakhov2012-02-131-0/+2
| | | | | | | - 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
* More cleanups and fixes for compiler warnings.0.4.6Vsevolod Stakhov2011-12-201-1/+1
|
* * Now it is possible to specify local functions to every callback of rspamd ↵Vsevolod Stakhov2011-12-141-10/+54
| | | | | | | | | lua API, that will allow such things as passing different variables via lua closures mechanic. Use config pool for configuration allocation in lua API to avoid leaks on config reload.
* * Finally get rid of stupid savepoints system and migrate to async events ↵Vsevolod Stakhov2011-12-141-10/+0
| | | | | | logic completely Fix lua redis library.
* Skip group addresses.0.4.5Vsevolod Stakhov2011-11-211-1/+1
|
* Fix stupid errors while trying to parse NULL address list.Vsevolod Stakhov2011-11-071-15/+26
|
* Fix misprint.Vsevolod Stakhov2011-11-041-1/+1
|
* Check if internet address list is parsed correctly.Vsevolod Stakhov2011-10-041-3/+9
|
* * Fix DNS PTR resolvingVsevolod Stakhov2011-08-221-1/+2
| | | | * Add ability to resolve ip in once_received plugin to avoid temporary DNS fails of SMTP resolving
* Fix signness in arithmetic operations.Vsevolod Stakhov2011-08-041-1/+1
|
* * Fix build under CentOS 5 with old glib 2.12Vsevolod Stakhov2011-07-291-14/+14
| | | | | * Fix build of rspamd with CMAKE_BINARY_DIR differs from CMAKE_SOURCE_DIR Rework include style.
* Add workaround for clang under linux.Vsevolod Stakhov2011-07-211-5/+5
| | | | Fix problems found by static analyzing.
* Fix textpart:get_language lua function.Vsevolod Stakhov2011-07-181-0/+1
|
* * Add new algorithm based on diff algorithm to compare relatively short text ↵Vsevolod Stakhov2011-07-131-1/+7
| | | | parts
* * Add ability to get difference between two parts from lua codeVsevolod Stakhov2011-07-121-0/+45
|
* * Add a simple logic of language detection for text parts (unicode script based)Vsevolod Stakhov2011-07-111-0/+101
|
* Actually all times are in GMT already, so avoid conversion to prevent dst ↵Vsevolod Stakhov2011-06-151-1/+1
| | | | loosing.
* * Add LRU caching structureVsevolod Stakhov2011-06-101-0/+16
| | | | | | | * Add SPF records cache * Add ability to parse doubles to xmlrpc Several fixes to dns interface. Trie plugin now checks urls as well.
* * Fix error in raw headers parsingVsevolod Stakhov2011-05-241-9/+12
| | | | * Improve speed of raw headers access
* * Add functions to lua API to detect message and task date (in GMT)Vsevolod Stakhov2011-04-221-0/+20
|
* Write to log number of dns requests per task.Vsevolod Stakhov2011-03-251-0/+3
|
* Push recipients in a proper way.Vsevolod Stakhov2011-03-181-19/+40
|
* Optimization.Vsevolod Stakhov2011-03-141-10/+3
|
* Fix gmime24 compatibility.Vsevolod Stakhov2011-03-091-2/+2
| | | | | | Fix adding extra space to raw headers. Reported by: Victor Ustugov
* Ignore group addresses.Vsevolod Stakhov2011-03-051-5/+7
|
* Assume headers folding as space character.Vsevolod Stakhov2011-03-051-1/+0
|
* * Add multimaps for "FROM" and "TO" headers (mime an smtp data can be checked)Vsevolod Stakhov2011-03-041-5/+123
| | | | * Improve lua api for getting message's sender and recipients
* * Rewrite URL storage systemVsevolod Stakhov2011-02-241-30/+31
|
* Save separator inside raw_header struct.Vsevolod Stakhov2011-02-231-0/+4
| | | | Requested by: Victor Ustugov
* * Process raw headers by FSM.Vsevolod Stakhov2011-02-211-0/+72
| | | | * Add methods for accessing raw_headers from lua and C
* Fix received headers parser state machine to parse headers with only 'by' ↵Vsevolod Stakhov2011-02-171-2/+3
| | | | component.
* Fix received headers passing to lua.Vsevolod Stakhov2011-02-171-0/+7
|
* * New module for checking emails inside messages (rules based, like multimap)Vsevolod Stakhov2011-02-031-3/+108
| | | | | | | * Emails now are separated from urls and urls checks * Add ability to check text attachements if option is presented in a configuration Version is 0.3.6 now
* * Add ability to obtain phished url from luaVsevolod Stakhov2010-11-121-0/+21
| | | | * Add ability to specify check domains for phishing check with 'domains' option
* * Add phishing detector (now just compares <a href> with tag's data).Vsevolod Stakhov2010-11-021-10/+124
|
* Remove G_INLINE_FUNC definitions as I misunderstood its purposes.Vsevolod Stakhov2010-10-151-1/+1
|
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-58/+58
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Add ability to extract filename and size of images from luaVsevolod Stakhov2010-08-251-0/+34
|
* * Add post filters to lua API - filters that would be called after all ↵Vsevolod Stakhov2010-08-251-0/+198
| | | | | | | | 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
* * Move images library to core rspamdVsevolod Stakhov2010-08-231-0/+104
| | | | * Add lua api to access images properties
* * Fix lua representing of invalid ip (nil, not 255.255.255.255)Vsevolod Stakhov2010-07-271-3/+3
| | | | | * Fix R_TO_SEEMS_AUTO rule (by citrin) * Add multimap lua plugin
* * Fix lua DNS codeVsevolod Stakhov2010-07-131-0/+3
| | | | * Decompress labels in DNS packets more strictly
* * Remove evdns and use only rspamd resolverVsevolod Stakhov2010-07-091-19/+58
|
* * Change metric logicVsevolod Stakhov2010-06-161-6/+5
| | | | | | | * 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
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-3/+3
| | | | | | | | | - 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
* * Add ability to add maps from lua scripts and access theirs elementsVsevolod Stakhov2009-11-021-0/+36
| | | | * Add whitelist module for whitelisting score for some ip/from addresses