]>
source.dussan.org Git - rspamd.git/log
Vsevolod Stakhov [Thu, 21 Aug 2014 16:14:00 +0000 (17:14 +0100)]
Rework lua_http.
Vsevolod Stakhov [Thu, 21 Aug 2014 15:26:51 +0000 (16:26 +0100)]
Fix session-less resolver.
Vsevolod Stakhov [Thu, 21 Aug 2014 15:20:40 +0000 (16:20 +0100)]
Add function rspamd_inet_address_set_port.
Vsevolod Stakhov [Thu, 21 Aug 2014 15:15:07 +0000 (16:15 +0100)]
Add function rspamd_inet_address_connect.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:54:35 +0000 (15:54 +0100)]
Allow to use resolver without the pool.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:47:51 +0000 (15:47 +0100)]
Allow to skip session in dns resolver.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:35:08 +0000 (15:35 +0100)]
Allow NULL-config resolver.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:28:54 +0000 (15:28 +0100)]
Add URL parsing utility.
Vsevolod Stakhov [Thu, 21 Aug 2014 13:07:27 +0000 (14:07 +0100)]
Allow usage of default event base.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:52:15 +0000 (15:52 +0100)]
Update ucl submodule.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:35:25 +0000 (15:35 +0100)]
Fix HTTP maps processing.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:35:16 +0000 (15:35 +0100)]
Fix reading maps.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:35:01 +0000 (15:35 +0100)]
Fix lua maps processing.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:26:05 +0000 (15:26 +0100)]
Do not call http body handler on end of message.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:15:08 +0000 (15:15 +0100)]
Reset http_parser on connection reset.
Vsevolod Stakhov [Wed, 20 Aug 2014 13:54:08 +0000 (14:54 +0100)]
Fix adding map for settings.
Vsevolod Stakhov [Wed, 20 Aug 2014 13:43:28 +0000 (14:43 +0100)]
Rework maps to work with http client.
Vsevolod Stakhov [Wed, 20 Aug 2014 13:11:58 +0000 (14:11 +0100)]
Add HTTP_CLIENT_SIMPLE option.
Vsevolod Stakhov [Tue, 19 Aug 2014 16:02:22 +0000 (17:02 +0100)]
Remove embedded jansson completely.
Vsevolod Stakhov [Tue, 19 Aug 2014 16:00:31 +0000 (17:00 +0100)]
Use ucl instead of jansson.
Vsevolod Stakhov [Tue, 19 Aug 2014 15:43:54 +0000 (16:43 +0100)]
Remove unused options from regexp module.
Vsevolod Stakhov [Tue, 19 Aug 2014 14:52:06 +0000 (15:52 +0100)]
Support slashed re in lua_regexp.
It is now possible to add slashed regexp to lua_regexp library, for
example:
/^something.+$/i
Vsevolod Stakhov [Tue, 19 Aug 2014 14:33:24 +0000 (15:33 +0100)]
Fix indentation.
Vsevolod Stakhov [Tue, 19 Aug 2014 14:30:24 +0000 (15:30 +0100)]
Consider settings actions.
Vsevolod Stakhov [Tue, 19 Aug 2014 14:01:30 +0000 (15:01 +0100)]
Fix settings priorities.
Vsevolod Stakhov [Tue, 19 Aug 2014 13:27:27 +0000 (14:27 +0100)]
Fix settings plugin.
Vsevolod Stakhov [Tue, 19 Aug 2014 13:10:23 +0000 (14:10 +0100)]
Process settings in rspamd.
Vsevolod Stakhov [Tue, 19 Aug 2014 12:22:20 +0000 (13:22 +0100)]
Remove unused variable.
Vsevolod Stakhov [Mon, 18 Aug 2014 23:10:25 +0000 (16:10 -0700)]
Refactor lua_ip one more time.
Suggested by: clock via irc
Vsevolod Stakhov [Mon, 18 Aug 2014 22:43:17 +0000 (15:43 -0700)]
Properly find 'actions' property.
Vsevolod Stakhov [Mon, 18 Aug 2014 22:22:09 +0000 (15:22 -0700)]
Viva clang-3.4
Vsevolod Stakhov [Mon, 18 Aug 2014 22:12:48 +0000 (15:12 -0700)]
Refactor lua_ip slightly
Vsevolod Stakhov [Mon, 18 Aug 2014 21:27:43 +0000 (14:27 -0700)]
Add mask function and compare function to lua_ip
Vsevolod Stakhov [Mon, 18 Aug 2014 16:58:05 +0000 (17:58 +0100)]
Add settings check logic.
Vsevolod Stakhov [Mon, 18 Aug 2014 16:07:32 +0000 (17:07 +0100)]
Add more settings processing.
Vsevolod Stakhov [Mon, 18 Aug 2014 15:45:55 +0000 (16:45 +0100)]
Start lua-settings implementation.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:56:33 +0000 (15:56 +0100)]
Fix plugins.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:34:13 +0000 (15:34 +0100)]
Fix regexp plugin for new smtp from/rcpt.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:33:09 +0000 (15:33 +0100)]
Another fix for parse host/port.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:24:47 +0000 (15:24 +0100)]
Fix critical bug in host/port parsing.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:00:07 +0000 (15:00 +0100)]
Adopt spf module for new from/rcpt.
Vsevolod Stakhov [Mon, 18 Aug 2014 13:59:46 +0000 (14:59 +0100)]
Fix critical bug in recipients_distance function.
Vsevolod Stakhov [Mon, 18 Aug 2014 13:29:23 +0000 (14:29 +0100)]
Unify lua API for getting rcptis and from.
Vsevolod Stakhov [Mon, 18 Aug 2014 13:20:48 +0000 (14:20 +0100)]
Unify from/rcpt processing.
Vsevolod Stakhov [Mon, 18 Aug 2014 10:01:02 +0000 (11:01 +0100)]
More rdns fixes.
Vsevolod Stakhov [Mon, 18 Aug 2014 09:32:46 +0000 (10:32 +0100)]
Fix rdns build.
Vsevolod Stakhov [Sun, 17 Aug 2014 20:48:01 +0000 (13:48 -0700)]
Update default configs.
Vsevolod Stakhov [Sun, 17 Aug 2014 17:53:07 +0000 (18:53 +0100)]
Really allow to specify multiplier in return value.
Vsevolod Stakhov [Sun, 17 Aug 2014 17:44:56 +0000 (18:44 +0100)]
Improve lua callbacks call.
Now it is possible to return a value from lua callback and rspamd can
automatically insert the symbol corresponding.
For example:
rspamd_config.TEST = function(task)
...
return true -- inserts symbol TEST with the default value
...
return true, 0.5 -- inserts symbol TEST with 0.5 multiplier
...
return true, "opt1", "opt2" -- insert symbol with the options specified
...
return true, 0.5, "opt1", "opt2"
...
end
Vsevolod Stakhov [Sun, 17 Aug 2014 17:23:53 +0000 (18:23 +0100)]
Forgot to initialize lua_State.
Vsevolod Stakhov [Sun, 17 Aug 2014 17:14:31 +0000 (18:14 +0100)]
Rework adding symbols from lua.
It is now possible to use something like:
rspamd_config.SYMBOL = function(task) ... end
or even
rspamd_config.SYMBOL = {
callback = function(task) ... end,
weight = '1.0', --optional
priority = '0', --optional
type = 'callback' --optional
}
Vsevolod Stakhov [Sun, 17 Aug 2014 16:34:06 +0000 (17:34 +0100)]
Lua is now parsed after all parsing complete.
Vsevolod Stakhov [Sun, 17 Aug 2014 16:15:16 +0000 (17:15 +0100)]
Rework lua function names to avoid ambiguity.
Vsevolod Stakhov [Sun, 17 Aug 2014 16:03:04 +0000 (17:03 +0100)]
Write custom headers in the output.
Vsevolod Stakhov [Sun, 17 Aug 2014 15:56:34 +0000 (16:56 +0100)]
Add support of custom request and reply headers.
Vsevolod Stakhov [Sun, 17 Aug 2014 15:17:45 +0000 (16:17 +0100)]
Rework symbols adding.
Now if no metric defines a symbol (explicitly or implicitly by means of
`unknown_weight` attribute), this symbol is skipped completely.
Vsevolod Stakhov [Sun, 17 Aug 2014 14:57:51 +0000 (15:57 +0100)]
Add configuration option `unknown_weight` for metrics.
If this option is specified, then all filters add symbols to this metric
with the specified weight even if they are not specified in symbols list
explicitly.
Vsevolod Stakhov [Sat, 16 Aug 2014 18:41:15 +0000 (19:41 +0100)]
Set useful fields for addresses.
Vsevolod Stakhov [Sat, 16 Aug 2014 18:18:59 +0000 (19:18 +0100)]
Remove unused definition.
Vsevolod Stakhov [Sat, 16 Aug 2014 17:52:22 +0000 (18:52 +0100)]
Add method to get any configuration key in lua.
Vsevolod Stakhov [Sat, 16 Aug 2014 17:32:55 +0000 (18:32 +0100)]
Add lua method to get config for the task.
Vsevolod Stakhov [Sat, 16 Aug 2014 17:29:27 +0000 (18:29 +0100)]
Add method to set task's settings.
Vsevolod Stakhov [Fri, 15 Aug 2014 10:25:36 +0000 (11:25 +0100)]
Fix linkage for rspamc if NO_SHARED is ON.
Vsevolod Stakhov [Thu, 14 Aug 2014 13:07:51 +0000 (14:07 +0100)]
Markdown.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:57:58 +0000 (13:57 +0100)]
Markdown fixes.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:54:01 +0000 (13:54 +0100)]
Add doc skeleton.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:48:06 +0000 (13:48 +0100)]
Add basic configuration documentation.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:18:31 +0000 (13:18 +0100)]
Allow learning from lua_task.
Vsevolod Stakhov [Wed, 13 Aug 2014 10:41:37 +0000 (11:41 +0100)]
Merge pull request #90 from dottedmag/master
Appease lintian by stating that public-domain is a public domain.
Mikhail Gusarov [Tue, 12 Aug 2014 22:31:59 +0000 (00:31 +0200)]
Appease lintian by stating that public-domain is a public domain.
Vsevolod Stakhov [Tue, 12 Aug 2014 11:51:48 +0000 (12:51 +0100)]
Fix buffer overrun when HTML exceptions are used.
Vsevolod Stakhov [Mon, 11 Aug 2014 14:35:17 +0000 (15:35 +0100)]
Fix URL detection in HTML parts.
Reported by: Andrew Lewis
Vsevolod Stakhov [Mon, 11 Aug 2014 14:09:28 +0000 (15:09 +0100)]
Fix copyright for debian.
Submitted by: Andreas Cadhalpun <andreas.cadhalpun at googlemail.com>
Ok by: Mikhail Gusarov
Vsevolod Stakhov [Mon, 11 Aug 2014 14:02:56 +0000 (15:02 +0100)]
Update submodules.
Vsevolod Stakhov [Fri, 25 Jul 2014 00:48:53 +0000 (17:48 -0700)]
Update configuration.
Vsevolod Stakhov [Fri, 25 Jul 2014 00:40:38 +0000 (17:40 -0700)]
Add option `check_all_filters`.
This option disables the optimization of messages processing and turn on
mode when all filters are checked.
Suggested by: AL
Vsevolod Stakhov [Wed, 23 Jul 2014 11:57:31 +0000 (12:57 +0100)]
Unify style without sorting headers.
Vsevolod Stakhov [Wed, 23 Jul 2014 11:53:32 +0000 (12:53 +0100)]
Add uncrustify source.
Vsevolod Stakhov [Wed, 23 Jul 2014 11:53:08 +0000 (12:53 +0100)]
Revert "Unify code style."
This reverts commit
e0483657ff6cf1adc828ccce457814d61fe90a0d .
Vsevolod Stakhov [Wed, 23 Jul 2014 11:45:28 +0000 (12:45 +0100)]
Unify code style.
Vsevolod Stakhov [Tue, 22 Jul 2014 17:19:53 +0000 (18:19 +0100)]
Disable old settings API.
Vsevolod Stakhov [Tue, 22 Jul 2014 17:16:45 +0000 (18:16 +0100)]
Add a simple implementation of metric settings check.
Vsevolod Stakhov [Tue, 22 Jul 2014 15:05:28 +0000 (16:05 +0100)]
Add dns subsection for options.
Vsevolod Stakhov [Tue, 22 Jul 2014 14:43:14 +0000 (15:43 +0100)]
Remove settings from the configuration.
Vsevolod Stakhov [Tue, 22 Jul 2014 14:41:54 +0000 (15:41 +0100)]
Remove hard dependency on settings.
Vsevolod Stakhov [Tue, 22 Jul 2014 14:38:04 +0000 (15:38 +0100)]
Remove old settings completely.
Vsevolod Stakhov [Tue, 22 Jul 2014 12:24:20 +0000 (13:24 +0100)]
Add `rspamd_config:add_map` lua function.
This function is intended to create maps with lua callback that is
called on map reading. For example:
```
local function cb(input)
print(input)
end
rspamd_config:add_map('http://example.com/test.map', 'cool map`, cb)
```
Vsevolod Stakhov [Tue, 22 Jul 2014 12:24:07 +0000 (13:24 +0100)]
Open UCL lua bindings explicitly.
Vsevolod Stakhov [Mon, 21 Jul 2014 18:51:04 +0000 (11:51 -0700)]
Adopt for the new lua ucl API.
Vsevolod Stakhov [Mon, 21 Jul 2014 18:43:33 +0000 (11:43 -0700)]
Remove own ucl interface.
Vsevolod Stakhov [Sat, 19 Jul 2014 16:42:05 +0000 (09:42 -0700)]
Update to the recent versions.
Vsevolod Stakhov [Sat, 19 Jul 2014 16:41:30 +0000 (09:41 -0700)]
Turn off read polling on finished connection.
Vsevolod Stakhov [Thu, 26 Jun 2014 15:50:27 +0000 (16:50 +0100)]
Do not overwrite parsed mask in SPF.
Vsevolod Stakhov [Mon, 2 Jun 2014 17:27:51 +0000 (18:27 +0100)]
Merge pull request #80 from AlexeySa/patch-1
Fix RBL module
Alexey [Mon, 2 Jun 2014 09:50:58 +0000 (13:50 +0400)]
Fix RBL module
Vsevolod Stakhov [Sat, 24 May 2014 08:40:02 +0000 (04:40 -0400)]
Merge pull request #77 from fatalbanana/master
Avoid redefining hardcoded defaults in RBL plugin
Vsevolod Stakhov [Sat, 24 May 2014 08:39:43 +0000 (04:39 -0400)]
Merge pull request #76 from AlexeySa/master
Some adding for RBL and SURBL
Vsevolod Stakhov [Sat, 24 May 2014 08:39:35 +0000 (04:39 -0400)]
Merge pull request #75 from AlexeySa/patch-2
Remove duplicated rbl rule and fix tabs
Andrew Lewis [Fri, 23 May 2014 19:33:26 +0000 (21:33 +0200)]
Avoid redefining hardcoded defaults in RBL plugin
Alexey [Fri, 23 May 2014 09:38:25 +0000 (02:38 -0700)]
Add TOP200 domains to surbl (from spamassassin)