]> source.dussan.org Git - rspamd.git/log
rspamd.git
10 years agoRework lua_http.
Vsevolod Stakhov [Thu, 21 Aug 2014 16:14:00 +0000 (17:14 +0100)]
Rework lua_http.

10 years agoFix session-less resolver.
Vsevolod Stakhov [Thu, 21 Aug 2014 15:26:51 +0000 (16:26 +0100)]
Fix session-less resolver.

10 years agoAdd function rspamd_inet_address_set_port.
Vsevolod Stakhov [Thu, 21 Aug 2014 15:20:40 +0000 (16:20 +0100)]
Add function rspamd_inet_address_set_port.

10 years agoAdd function rspamd_inet_address_connect.
Vsevolod Stakhov [Thu, 21 Aug 2014 15:15:07 +0000 (16:15 +0100)]
Add function rspamd_inet_address_connect.

10 years agoAllow to use resolver without the pool.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:54:35 +0000 (15:54 +0100)]
Allow to use resolver without the pool.

10 years agoAllow to skip session in dns resolver.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:47:51 +0000 (15:47 +0100)]
Allow to skip session in dns resolver.

10 years agoAllow NULL-config resolver.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:35:08 +0000 (15:35 +0100)]
Allow NULL-config resolver.

10 years agoAdd URL parsing utility.
Vsevolod Stakhov [Thu, 21 Aug 2014 14:28:54 +0000 (15:28 +0100)]
Add URL parsing utility.

10 years agoAllow usage of default event base.
Vsevolod Stakhov [Thu, 21 Aug 2014 13:07:27 +0000 (14:07 +0100)]
Allow usage of default event base.

10 years agoUpdate ucl submodule.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:52:15 +0000 (15:52 +0100)]
Update ucl submodule.

10 years agoFix HTTP maps processing.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:35:25 +0000 (15:35 +0100)]
Fix HTTP maps processing.

10 years agoFix reading maps.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:35:16 +0000 (15:35 +0100)]
Fix reading maps.

10 years agoFix lua maps processing.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:35:01 +0000 (15:35 +0100)]
Fix lua maps processing.

10 years agoDo not call http body handler on end of message.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:26:05 +0000 (15:26 +0100)]
Do not call http body handler on end of message.

10 years agoReset http_parser on connection reset.
Vsevolod Stakhov [Wed, 20 Aug 2014 14:15:08 +0000 (15:15 +0100)]
Reset http_parser on connection reset.

10 years agoFix adding map for settings.
Vsevolod Stakhov [Wed, 20 Aug 2014 13:54:08 +0000 (14:54 +0100)]
Fix adding map for settings.

10 years agoRework maps to work with http client.
Vsevolod Stakhov [Wed, 20 Aug 2014 13:43:28 +0000 (14:43 +0100)]
Rework maps to work with http client.

10 years agoAdd HTTP_CLIENT_SIMPLE option.
Vsevolod Stakhov [Wed, 20 Aug 2014 13:11:58 +0000 (14:11 +0100)]
Add HTTP_CLIENT_SIMPLE option.

10 years agoRemove embedded jansson completely.
Vsevolod Stakhov [Tue, 19 Aug 2014 16:02:22 +0000 (17:02 +0100)]
Remove embedded jansson completely.

10 years agoUse ucl instead of jansson.
Vsevolod Stakhov [Tue, 19 Aug 2014 16:00:31 +0000 (17:00 +0100)]
Use ucl instead of jansson.

10 years agoRemove unused options from regexp module.
Vsevolod Stakhov [Tue, 19 Aug 2014 15:43:54 +0000 (16:43 +0100)]
Remove unused options from regexp module.

10 years agoSupport slashed re in lua_regexp.
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

10 years agoFix indentation.
Vsevolod Stakhov [Tue, 19 Aug 2014 14:33:24 +0000 (15:33 +0100)]
Fix indentation.

10 years agoConsider settings actions.
Vsevolod Stakhov [Tue, 19 Aug 2014 14:30:24 +0000 (15:30 +0100)]
Consider settings actions.

10 years agoFix settings priorities.
Vsevolod Stakhov [Tue, 19 Aug 2014 14:01:30 +0000 (15:01 +0100)]
Fix settings priorities.

10 years agoFix settings plugin.
Vsevolod Stakhov [Tue, 19 Aug 2014 13:27:27 +0000 (14:27 +0100)]
Fix settings plugin.

10 years agoProcess settings in rspamd.
Vsevolod Stakhov [Tue, 19 Aug 2014 13:10:23 +0000 (14:10 +0100)]
Process settings in rspamd.

10 years agoRemove unused variable.
Vsevolod Stakhov [Tue, 19 Aug 2014 12:22:20 +0000 (13:22 +0100)]
Remove unused variable.

10 years agoRefactor lua_ip one more time.
Vsevolod Stakhov [Mon, 18 Aug 2014 23:10:25 +0000 (16:10 -0700)]
Refactor lua_ip one more time.

Suggested by: clock via irc

10 years agoProperly find 'actions' property.
Vsevolod Stakhov [Mon, 18 Aug 2014 22:43:17 +0000 (15:43 -0700)]
Properly find 'actions' property.

10 years agoViva clang-3.4
Vsevolod Stakhov [Mon, 18 Aug 2014 22:22:09 +0000 (15:22 -0700)]
Viva clang-3.4

10 years agoRefactor lua_ip slightly
Vsevolod Stakhov [Mon, 18 Aug 2014 22:12:48 +0000 (15:12 -0700)]
Refactor lua_ip slightly

10 years agoAdd mask function and compare function to lua_ip
Vsevolod Stakhov [Mon, 18 Aug 2014 21:27:43 +0000 (14:27 -0700)]
Add mask function and compare function to lua_ip

10 years agoAdd settings check logic.
Vsevolod Stakhov [Mon, 18 Aug 2014 16:58:05 +0000 (17:58 +0100)]
Add settings check logic.

10 years agoAdd more settings processing.
Vsevolod Stakhov [Mon, 18 Aug 2014 16:07:32 +0000 (17:07 +0100)]
Add more settings processing.

10 years agoStart lua-settings implementation.
Vsevolod Stakhov [Mon, 18 Aug 2014 15:45:55 +0000 (16:45 +0100)]
Start lua-settings implementation.

10 years agoFix plugins.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:56:33 +0000 (15:56 +0100)]
Fix plugins.

10 years agoFix regexp plugin for new smtp from/rcpt.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:34:13 +0000 (15:34 +0100)]
Fix regexp plugin for new smtp from/rcpt.

10 years agoAnother fix for parse host/port.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:33:09 +0000 (15:33 +0100)]
Another fix for parse host/port.

10 years agoFix critical bug in host/port parsing.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:24:47 +0000 (15:24 +0100)]
Fix critical bug in host/port parsing.

10 years agoAdopt spf module for new from/rcpt.
Vsevolod Stakhov [Mon, 18 Aug 2014 14:00:07 +0000 (15:00 +0100)]
Adopt spf module for new from/rcpt.

10 years agoFix critical bug in recipients_distance function.
Vsevolod Stakhov [Mon, 18 Aug 2014 13:59:46 +0000 (14:59 +0100)]
Fix critical bug in recipients_distance function.

10 years agoUnify lua API for getting rcptis and from.
Vsevolod Stakhov [Mon, 18 Aug 2014 13:29:23 +0000 (14:29 +0100)]
Unify lua API for getting rcptis and from.

10 years agoUnify from/rcpt processing.
Vsevolod Stakhov [Mon, 18 Aug 2014 13:20:48 +0000 (14:20 +0100)]
Unify from/rcpt processing.

10 years agoMore rdns fixes.
Vsevolod Stakhov [Mon, 18 Aug 2014 10:01:02 +0000 (11:01 +0100)]
More rdns fixes.

10 years agoFix rdns build.
Vsevolod Stakhov [Mon, 18 Aug 2014 09:32:46 +0000 (10:32 +0100)]
Fix rdns build.

10 years agoUpdate default configs.
Vsevolod Stakhov [Sun, 17 Aug 2014 20:48:01 +0000 (13:48 -0700)]
Update default configs.

10 years agoReally allow to specify multiplier in return value.
Vsevolod Stakhov [Sun, 17 Aug 2014 17:53:07 +0000 (18:53 +0100)]
Really allow to specify multiplier in return value.

10 years agoImprove lua callbacks call.
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

10 years agoForgot to initialize lua_State.
Vsevolod Stakhov [Sun, 17 Aug 2014 17:23:53 +0000 (18:23 +0100)]
Forgot to initialize lua_State.

10 years agoRework adding symbols from lua.
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
}

10 years agoLua is now parsed after all parsing complete.
Vsevolod Stakhov [Sun, 17 Aug 2014 16:34:06 +0000 (17:34 +0100)]
Lua is now parsed after all parsing complete.

10 years agoRework lua function names to avoid ambiguity.
Vsevolod Stakhov [Sun, 17 Aug 2014 16:15:16 +0000 (17:15 +0100)]
Rework lua function names to avoid ambiguity.

10 years agoWrite custom headers in the output.
Vsevolod Stakhov [Sun, 17 Aug 2014 16:03:04 +0000 (17:03 +0100)]
Write custom headers in the output.

10 years agoAdd support of custom request and reply headers.
Vsevolod Stakhov [Sun, 17 Aug 2014 15:56:34 +0000 (16:56 +0100)]
Add support of custom request and reply headers.

10 years agoRework symbols adding.
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.

10 years agoAdd configuration option `unknown_weight` for metrics.
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.

10 years agoSet useful fields for addresses.
Vsevolod Stakhov [Sat, 16 Aug 2014 18:41:15 +0000 (19:41 +0100)]
Set useful fields for addresses.

10 years agoRemove unused definition.
Vsevolod Stakhov [Sat, 16 Aug 2014 18:18:59 +0000 (19:18 +0100)]
Remove unused definition.

10 years agoAdd method to get any configuration key in lua.
Vsevolod Stakhov [Sat, 16 Aug 2014 17:52:22 +0000 (18:52 +0100)]
Add method to get any configuration key in lua.

10 years agoAdd lua method to get config for the task.
Vsevolod Stakhov [Sat, 16 Aug 2014 17:32:55 +0000 (18:32 +0100)]
Add lua method to get config for the task.

10 years agoAdd method to set task's settings.
Vsevolod Stakhov [Sat, 16 Aug 2014 17:29:27 +0000 (18:29 +0100)]
Add method to set task's settings.

10 years agoFix linkage for rspamc if NO_SHARED is ON.
Vsevolod Stakhov [Fri, 15 Aug 2014 10:25:36 +0000 (11:25 +0100)]
Fix linkage for rspamc if NO_SHARED is ON.

10 years agoMarkdown.
Vsevolod Stakhov [Thu, 14 Aug 2014 13:07:51 +0000 (14:07 +0100)]
Markdown.

10 years agoMarkdown fixes.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:57:58 +0000 (13:57 +0100)]
Markdown fixes.

10 years agoAdd doc skeleton.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:54:01 +0000 (13:54 +0100)]
Add doc skeleton.

10 years agoAdd basic configuration documentation.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:48:06 +0000 (13:48 +0100)]
Add basic configuration documentation.

10 years agoAllow learning from lua_task.
Vsevolod Stakhov [Thu, 14 Aug 2014 12:18:31 +0000 (13:18 +0100)]
Allow learning from lua_task.

10 years agoMerge pull request #90 from dottedmag/master
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.

10 years agoAppease lintian by stating that public-domain is a public domain. 90/head
Mikhail Gusarov [Tue, 12 Aug 2014 22:31:59 +0000 (00:31 +0200)]
Appease lintian by stating that public-domain is a public domain.

10 years agoFix buffer overrun when HTML exceptions are used.
Vsevolod Stakhov [Tue, 12 Aug 2014 11:51:48 +0000 (12:51 +0100)]
Fix buffer overrun when HTML exceptions are used.

10 years agoFix URL detection in HTML parts.
Vsevolod Stakhov [Mon, 11 Aug 2014 14:35:17 +0000 (15:35 +0100)]
Fix URL detection in HTML parts.

Reported by: Andrew Lewis

10 years agoFix copyright for debian.
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

10 years agoUpdate submodules.
Vsevolod Stakhov [Mon, 11 Aug 2014 14:02:56 +0000 (15:02 +0100)]
Update submodules.

10 years agoUpdate configuration.
Vsevolod Stakhov [Fri, 25 Jul 2014 00:48:53 +0000 (17:48 -0700)]
Update configuration.

10 years agoAdd option `check_all_filters`.
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

10 years agoUnify style without sorting headers.
Vsevolod Stakhov [Wed, 23 Jul 2014 11:57:31 +0000 (12:57 +0100)]
Unify style without sorting headers.

10 years agoAdd uncrustify source.
Vsevolod Stakhov [Wed, 23 Jul 2014 11:53:32 +0000 (12:53 +0100)]
Add uncrustify source.

10 years agoRevert "Unify code style."
Vsevolod Stakhov [Wed, 23 Jul 2014 11:53:08 +0000 (12:53 +0100)]
Revert "Unify code style."

This reverts commit e0483657ff6cf1adc828ccce457814d61fe90a0d.

10 years agoUnify code style.
Vsevolod Stakhov [Wed, 23 Jul 2014 11:45:28 +0000 (12:45 +0100)]
Unify code style.

10 years agoDisable old settings API.
Vsevolod Stakhov [Tue, 22 Jul 2014 17:19:53 +0000 (18:19 +0100)]
Disable old settings API.

10 years agoAdd a simple implementation of metric settings check.
Vsevolod Stakhov [Tue, 22 Jul 2014 17:16:45 +0000 (18:16 +0100)]
Add a simple implementation of metric settings check.

10 years agoAdd dns subsection for options.
Vsevolod Stakhov [Tue, 22 Jul 2014 15:05:28 +0000 (16:05 +0100)]
Add dns subsection for options.

10 years agoRemove settings from the configuration.
Vsevolod Stakhov [Tue, 22 Jul 2014 14:43:14 +0000 (15:43 +0100)]
Remove settings from the configuration.

10 years agoRemove hard dependency on settings.
Vsevolod Stakhov [Tue, 22 Jul 2014 14:41:54 +0000 (15:41 +0100)]
Remove hard dependency on settings.

10 years agoRemove old settings completely.
Vsevolod Stakhov [Tue, 22 Jul 2014 14:38:04 +0000 (15:38 +0100)]
Remove old settings completely.

10 years agoAdd `rspamd_config:add_map` lua function.
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)
```

10 years agoOpen UCL lua bindings explicitly.
Vsevolod Stakhov [Tue, 22 Jul 2014 12:24:07 +0000 (13:24 +0100)]
Open UCL lua bindings explicitly.

10 years agoAdopt for the new lua ucl API.
Vsevolod Stakhov [Mon, 21 Jul 2014 18:51:04 +0000 (11:51 -0700)]
Adopt for the new lua ucl API.

10 years agoRemove own ucl interface.
Vsevolod Stakhov [Mon, 21 Jul 2014 18:43:33 +0000 (11:43 -0700)]
Remove own ucl interface.

10 years agoUpdate to the recent versions.
Vsevolod Stakhov [Sat, 19 Jul 2014 16:42:05 +0000 (09:42 -0700)]
Update to the recent versions.

10 years agoTurn off read polling on finished connection.
Vsevolod Stakhov [Sat, 19 Jul 2014 16:41:30 +0000 (09:41 -0700)]
Turn off read polling on finished connection.

10 years agoDo not overwrite parsed mask in SPF.
Vsevolod Stakhov [Thu, 26 Jun 2014 15:50:27 +0000 (16:50 +0100)]
Do not overwrite parsed mask in SPF.

10 years agoMerge pull request #80 from AlexeySa/patch-1
Vsevolod Stakhov [Mon, 2 Jun 2014 17:27:51 +0000 (18:27 +0100)]
Merge pull request #80 from AlexeySa/patch-1

Fix RBL module

10 years agoFix RBL module 80/head
Alexey [Mon, 2 Jun 2014 09:50:58 +0000 (13:50 +0400)]
Fix RBL module

10 years agoMerge pull request #77 from fatalbanana/master
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

10 years agoMerge pull request #76 from AlexeySa/master
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

10 years agoMerge pull request #75 from AlexeySa/patch-2
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

10 years agoAvoid redefining hardcoded defaults in RBL plugin 77/head
Andrew Lewis [Fri, 23 May 2014 19:33:26 +0000 (21:33 +0200)]
Avoid redefining hardcoded defaults in RBL plugin

10 years agoAdd TOP200 domains to surbl (from spamassassin) 76/head
Alexey [Fri, 23 May 2014 09:38:25 +0000 (02:38 -0700)]
Add TOP200 domains to surbl (from spamassassin)