]> source.dussan.org Git - rspamd.git/log
rspamd.git
4 years agoMerge pull request #3307 from moisseev/patch-1
Vsevolod Stakhov [Tue, 24 Mar 2020 11:02:13 +0000 (11:02 +0000)]
Merge pull request #3307 from moisseev/patch-1

[WebUI] Fix favicon path

4 years ago[Minor] Add logging
Vsevolod Stakhov [Tue, 24 Mar 2020 10:56:33 +0000 (10:56 +0000)]
[Minor] Add logging

4 years ago[Minor] Add sanity check
Vsevolod Stakhov [Tue, 24 Mar 2020 10:45:58 +0000 (10:45 +0000)]
[Minor] Add sanity check

4 years ago[Minor] Reduce log noise
Vsevolod Stakhov [Mon, 23 Mar 2020 16:13:45 +0000 (16:13 +0000)]
[Minor] Reduce log noise

4 years ago[Rework] Re cache: Load compiled hyperscan in the main process as well
Vsevolod Stakhov [Mon, 23 Mar 2020 16:01:28 +0000 (16:01 +0000)]
[Rework] Re cache: Load compiled hyperscan in the main process as well

4 years ago[Rework] Re cache: Load hyperscan early
Vsevolod Stakhov [Mon, 23 Mar 2020 15:34:04 +0000 (15:34 +0000)]
[Rework] Re cache: Load hyperscan early

4 years ago[Rework] URL: Another update for urls extraction logic
Vsevolod Stakhov [Mon, 23 Mar 2020 14:50:24 +0000 (14:50 +0000)]
[Rework] URL: Another update for urls extraction logic

URL extraction from HTML parts should look like this:
1. Extract href links
2. Convert HTML to plain text and extract:
  a) (http|https|ftp)://foo.bar and www.foo
  b) email like strings \bfoo@bar.baz\b .
For all extracted strings check if we have host with a domain from the public suffix.

4 years ago[Minor] Oops, forgot to fill struct field
Vsevolod Stakhov [Mon, 23 Mar 2020 08:29:35 +0000 (08:29 +0000)]
[Minor] Oops, forgot to fill struct field

4 years ago[WebUI] Fix favicon path 3307/head
Alexander Moisseev [Sun, 22 Mar 2020 19:26:17 +0000 (22:26 +0300)]
[WebUI] Fix favicon path

Issue:  #3207

4 years ago[Rework] Urls: process query urls in HTML urls correctly
Vsevolod Stakhov [Sun, 22 Mar 2020 17:25:32 +0000 (17:25 +0000)]
[Rework] Urls: process query urls in HTML urls correctly

4 years ago[Rework] Urls: Improve query urls handling
Vsevolod Stakhov [Sun, 22 Mar 2020 13:08:26 +0000 (13:08 +0000)]
[Rework] Urls: Improve query urls handling

4 years ago[Minor] Replace g_abort with abort
Vsevolod Stakhov [Fri, 20 Mar 2020 14:58:21 +0000 (14:58 +0000)]
[Minor] Replace g_abort with abort

4 years ago[Rework] Fix various url extraction issues
Vsevolod Stakhov [Thu, 19 Mar 2020 18:33:16 +0000 (18:33 +0000)]
[Rework] Fix various url extraction issues

4 years ago[Minor] Improve dkim failures logging
Vsevolod Stakhov [Thu, 19 Mar 2020 17:07:33 +0000 (17:07 +0000)]
[Minor] Improve dkim failures logging

4 years ago[Rework] Use multiple search tries for different url extraction types
Vsevolod Stakhov [Thu, 19 Mar 2020 16:40:51 +0000 (16:40 +0000)]
[Rework] Use multiple search tries for different url extraction types

4 years ago[Rework] Change the way to extract URLs when dealing with alternative parts
Vsevolod Stakhov [Thu, 19 Mar 2020 16:06:42 +0000 (16:06 +0000)]
[Rework] Change the way to extract URLs when dealing with alternative parts

4 years ago[Fix] Fix some corner cases in urls parsing, add limits
Vsevolod Stakhov [Thu, 19 Mar 2020 15:26:45 +0000 (15:26 +0000)]
[Fix] Fix some corner cases in urls parsing, add limits

4 years ago[Minor] Remove UCP from TLD parsing
Vsevolod Stakhov [Thu, 19 Mar 2020 15:26:31 +0000 (15:26 +0000)]
[Minor] Remove UCP from TLD parsing

4 years ago[Minor] Use a more strict pattern for tld lookup
Vsevolod Stakhov [Thu, 19 Mar 2020 13:37:31 +0000 (13:37 +0000)]
[Minor] Use a more strict pattern for tld lookup

4 years ago[Fix] Fix flags that caused force_actions failure
Vsevolod Stakhov [Wed, 18 Mar 2020 15:57:53 +0000 (15:57 +0000)]
[Fix] Fix flags that caused force_actions failure

Issue: #3299

4 years ago[Minor] Fix learning with symbols that have no static scores
Vsevolod Stakhov [Wed, 18 Mar 2020 10:42:23 +0000 (10:42 +0000)]
[Minor] Fix learning with symbols that have no static scores

4 years agoMerge pull request #3302 from korgoth1/master
Vsevolod Stakhov [Tue, 17 Mar 2020 17:07:31 +0000 (17:07 +0000)]
Merge pull request #3302 from korgoth1/master

[TEST] Force Actions Settings

4 years ago[TEST] Force Actions Settings 3302/head
korgoth1 [Tue, 17 Mar 2020 17:04:47 +0000 (20:04 +0300)]
[TEST] Force Actions Settings

4 years ago[Minor] Implement `hosts` parameter in DNS config
Vsevolod Stakhov [Tue, 17 Mar 2020 15:41:05 +0000 (15:41 +0000)]
[Minor] Implement `hosts` parameter in DNS config

4 years ago[Feature] Implement hosts file processing
Vsevolod Stakhov [Tue, 17 Mar 2020 15:36:54 +0000 (15:36 +0000)]
[Feature] Implement hosts file processing

4 years agoMerge pull request #3301 from citrin/MISSING_MIME_VERSION
Vsevolod Stakhov [Tue, 17 Mar 2020 11:45:57 +0000 (11:45 +0000)]
Merge pull request #3301 from citrin/MISSING_MIME_VERSION

[Minor] Improve MISSING_MIME_VERSION rule

4 years ago[Minor] Improve MISSING_MIME_VERSION rule 3301/head
Anton Yuzhaninov [Tue, 17 Mar 2020 11:34:12 +0000 (11:34 +0000)]
[Minor] Improve MISSING_MIME_VERSION rule

Previous condition have a complex condition which prevented adding the
symbol for some MIME messages without MIME-Version header.

4 years ago[Minor] Firther relax href parsing
Vsevolod Stakhov [Mon, 16 Mar 2020 17:08:07 +0000 (17:08 +0000)]
[Minor] Firther relax href parsing

4 years ago[Minor] Neural: Fix vectors lengths checking
Vsevolod Stakhov [Mon, 16 Mar 2020 14:10:48 +0000 (14:10 +0000)]
[Minor] Neural: Fix vectors lengths checking

4 years ago[Test] Fix race condition
Vsevolod Stakhov [Mon, 16 Mar 2020 14:10:37 +0000 (14:10 +0000)]
[Test] Fix race condition

4 years ago[Fix] Improve base64 detection
Vsevolod Stakhov [Mon, 16 Mar 2020 13:31:01 +0000 (13:31 +0000)]
[Fix] Improve base64 detection

4 years ago[Minor] Fix table unpacking
Vsevolod Stakhov [Mon, 16 Mar 2020 11:43:54 +0000 (11:43 +0000)]
[Minor] Fix table unpacking

4 years ago[Minor] Try to fix brain damaged libev timers
Vsevolod Stakhov [Mon, 16 Mar 2020 11:32:49 +0000 (11:32 +0000)]
[Minor] Try to fix brain damaged libev timers

4 years ago[Minor] Improve logging of the invalid charset case
Vsevolod Stakhov [Mon, 16 Mar 2020 11:18:20 +0000 (11:18 +0000)]
[Minor] Improve logging of the invalid charset case

4 years ago[Feature] Neural: Introduce classes bias that allows non-equal classes learning
Vsevolod Stakhov [Mon, 16 Mar 2020 11:15:12 +0000 (11:15 +0000)]
[Feature] Neural: Introduce classes bias that allows non-equal classes learning

4 years ago[Fix] Normalize dynamic scores in ANN correctly
Vsevolod Stakhov [Mon, 16 Mar 2020 10:12:46 +0000 (10:12 +0000)]
[Fix] Normalize dynamic scores in ANN correctly

4 years ago[Minor] Add some docs
Vsevolod Stakhov [Sun, 15 Mar 2020 20:57:07 +0000 (20:57 +0000)]
[Minor] Add some docs

4 years ago[Minor] Clickhouse: Try to fix order of extra columns
Vsevolod Stakhov [Fri, 13 Mar 2020 13:51:34 +0000 (13:51 +0000)]
[Minor] Clickhouse: Try to fix order of extra columns

4 years ago[Minor] Fix old broken logic compatibility
Vsevolod Stakhov [Thu, 12 Mar 2020 14:56:38 +0000 (14:56 +0000)]
[Minor] Fix old broken logic compatibility

4 years ago[Minor] Oops, fix html urls processing
Vsevolod Stakhov [Thu, 12 Mar 2020 14:26:53 +0000 (14:26 +0000)]
[Minor] Oops, fix html urls processing

4 years ago[Fix] Fix lua symbols scores registration when config does not define scores
Vsevolod Stakhov [Thu, 12 Mar 2020 12:27:40 +0000 (12:27 +0000)]
[Fix] Fix lua symbols scores registration when config does not define scores

4 years agoMerge pull request #3298 from korgoth1/master
Vsevolod Stakhov [Wed, 11 Mar 2020 19:50:21 +0000 (19:50 +0000)]
Merge pull request #3298 from korgoth1/master

[Test] URL compose map

4 years ago[Test] URL compose map 3298/head
korgoth1 [Wed, 11 Mar 2020 19:45:07 +0000 (22:45 +0300)]
[Test] URL compose map

4 years ago[Minor] Zero terminate id string
Vsevolod Stakhov [Wed, 11 Mar 2020 17:56:34 +0000 (17:56 +0000)]
[Minor] Zero terminate id string

4 years ago[Fix] Plug memory leak introduced by #3153
Vsevolod Stakhov [Wed, 11 Mar 2020 17:53:43 +0000 (17:53 +0000)]
[Fix] Plug memory leak introduced by #3153

4 years agoRevert "[Minor] Filter nil values in rspamd_config:get_all_opt"
Vsevolod Stakhov [Wed, 11 Mar 2020 14:56:29 +0000 (14:56 +0000)]
Revert "[Minor] Filter nil values in rspamd_config:get_all_opt"

This reverts commit af30ca1eb035d6824107c1f55613099c6331cbdb.

4 years ago[Minor] Fix bitset size
Vsevolod Stakhov [Wed, 11 Mar 2020 14:41:13 +0000 (14:41 +0000)]
[Minor] Fix bitset size

4 years ago[Minor] Filter nil values in rspamd_config:get_all_opt
Vsevolod Stakhov [Wed, 11 Mar 2020 14:32:33 +0000 (14:32 +0000)]
[Minor] Filter nil values in rspamd_config:get_all_opt

4 years ago[Minor] Allow to push objects to lua replacing UCL_NULL
Vsevolod Stakhov [Wed, 11 Mar 2020 14:31:38 +0000 (14:31 +0000)]
[Minor] Allow to push objects to lua replacing UCL_NULL

4 years ago[Minor] Oops, remove g_free dtor
Vsevolod Stakhov [Wed, 11 Mar 2020 09:32:25 +0000 (09:32 +0000)]
[Minor] Oops, remove g_free dtor

4 years agoMerge pull request #3292 from tech-ozon-io/segfault_01_master
Vsevolod Stakhov [Tue, 10 Mar 2020 16:31:39 +0000 (16:31 +0000)]
Merge pull request #3292 from tech-ozon-io/segfault_01_master

[Minor] Segfault for some configuration.

4 years ago[Minor] Segfault for some configuration. 3292/head
Thierry Fournier [Sat, 7 Mar 2020 13:48:31 +0000 (14:48 +0100)]
[Minor] Segfault for some configuration.

When the configuration file contains only these two lines, rspamd
try to send log which announce that it can bind the soket, but
"bind_conf" is NULL and it is dereferenced, so we have a segfault.

   worker "normal" {
   }

This patch fix the segfault.

4 years ago[Minor] Allocate variable in the pool and avoid malloc
Vsevolod Stakhov [Tue, 10 Mar 2020 15:59:20 +0000 (15:59 +0000)]
[Minor] Allocate variable in the pool and avoid malloc

4 years ago[Fix] Fix variables replacement in mempool
Vsevolod Stakhov [Tue, 10 Mar 2020 15:48:56 +0000 (15:48 +0000)]
[Fix] Fix variables replacement in mempool

4 years agoMerge pull request #3294 from tech-ozon-io/compile_error
Vsevolod Stakhov [Tue, 10 Mar 2020 12:08:46 +0000 (12:08 +0000)]
Merge pull request #3294 from tech-ozon-io/compile_error

[Minor] Compilation error with __has_attribuute operator

4 years ago[Fix] Stat_redis_backend: Fix memory leak and simplify learn path
Vsevolod Stakhov [Mon, 9 Mar 2020 16:59:54 +0000 (16:59 +0000)]
[Fix] Stat_redis_backend: Fix memory leak and simplify learn path

4 years ago[Minor] Fuzzy_backend_redis: Improve logging
Vsevolod Stakhov [Mon, 9 Mar 2020 13:09:52 +0000 (13:09 +0000)]
[Minor] Fuzzy_backend_redis: Improve logging

4 years ago[Minor] Compilation error with __has_attribuute operator 3294/head
Thierry Fournier [Sun, 8 Mar 2020 09:16:13 +0000 (10:16 +0100)]
[Minor] Compilation error with __has_attribuute operator

GCC recommands to add alternative to __has_attribute operator:

https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html

4 years ago[Minor] Another dkim logs improvement
Vsevolod Stakhov [Mon, 9 Mar 2020 12:37:22 +0000 (12:37 +0000)]
[Minor] Another dkim logs improvement

4 years ago[Test] Sort hash tables in tests
Vsevolod Stakhov [Mon, 9 Mar 2020 12:11:11 +0000 (12:11 +0000)]
[Test] Sort hash tables in tests

4 years ago[Rework] Urls: update lua libraries
Vsevolod Stakhov [Mon, 9 Mar 2020 10:45:26 +0000 (10:45 +0000)]
[Rework] Urls: update lua libraries

4 years ago[Rework] Urls: adopt html related stuff
Vsevolod Stakhov [Sat, 7 Mar 2020 16:32:14 +0000 (16:32 +0000)]
[Rework] Urls: adopt html related stuff

4 years ago[Rework] Urls: more rework of the urls sets
Vsevolod Stakhov [Sat, 7 Mar 2020 12:15:51 +0000 (12:15 +0000)]
[Rework] Urls: more rework of the urls sets

4 years ago[Rework] Urls: rework urls hash structure
Vsevolod Stakhov [Fri, 6 Mar 2020 15:58:22 +0000 (15:58 +0000)]
[Rework] Urls: rework urls hash structure

4 years ago[Rework] Rework URL structure: adjust tld part
Vsevolod Stakhov [Fri, 6 Mar 2020 14:03:20 +0000 (14:03 +0000)]
[Rework] Rework URL structure: adjust tld part

4 years ago[Rework] Rework URL structure: more structure optimisations
Vsevolod Stakhov [Fri, 6 Mar 2020 13:14:41 +0000 (13:14 +0000)]
[Rework] Rework URL structure: more structure optimisations

4 years ago[Rework] Rework URL structure: host field
Vsevolod Stakhov [Fri, 6 Mar 2020 12:01:37 +0000 (12:01 +0000)]
[Rework] Rework URL structure: host field

4 years ago[Rework] Rework URL structure: user field
Vsevolod Stakhov [Fri, 6 Mar 2020 11:27:24 +0000 (11:27 +0000)]
[Rework] Rework URL structure: user field

4 years agoMerge pull request #3293 from xf-/task/apple-touch-icon
Vsevolod Stakhov [Sun, 8 Mar 2020 11:45:40 +0000 (11:45 +0000)]
Merge pull request #3293 from xf-/task/apple-touch-icon

[WebUI] Add apple-touch-icon

4 years ago[WebUI] Add apple-touch-icon 3293/head
Xaver Maierhofer [Sat, 7 Mar 2020 18:16:35 +0000 (19:16 +0100)]
[WebUI] Add apple-touch-icon

4 years agoMerge pull request #3291 from tech-ozon-io/var_issue_master
Vsevolod Stakhov [Sat, 7 Mar 2020 17:15:18 +0000 (17:15 +0000)]
Merge pull request #3291 from tech-ozon-io/var_issue_master

[Minor] Fix --var in rspamd CLI arguments

4 years ago[Minor] --var doesn't work 3291/head
Thierry Fournier [Sat, 7 Mar 2020 09:57:10 +0000 (10:57 +0100)]
[Minor] --var doesn't work

We can add varaibels on the command line after argument or using --var parameter.
When --var is used, an assertion is triggered:

   ./rspamd.install/bin/rspamd --var LOGDIR=/tmp/
   (rspamd:7171): GLib-CRITICAL **: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed

The hash table is not initialized, because the table is initialized after
the argument parser.

This patch initialize the hash table on demand.

Note: the patch is tested on 1.9 version and not on master, because I can't compile the master branch.

Note: I suggest to backport the patch on 1.9 version

4 years agoMerge pull request #3289 from moisseev/webui
Vsevolod Stakhov [Fri, 6 Mar 2020 10:58:46 +0000 (10:58 +0000)]
Merge pull request #3289 from moisseev/webui

[WebUI] Add auto-refresh interval settings

4 years ago[WebUI] Add auto-refresh interval settings 3289/head
moisseev [Fri, 6 Mar 2020 08:07:27 +0000 (11:07 +0300)]
[WebUI] Add auto-refresh interval settings

4 years ago[Minor] Clickhouse: Use IF NOT EXISTS clause in migrations
Vsevolod Stakhov [Thu, 5 Mar 2020 12:17:22 +0000 (12:17 +0000)]
[Minor] Clickhouse: Use IF NOT EXISTS clause in migrations

4 years ago[Minor] Add some sanity checks
Vsevolod Stakhov [Thu, 5 Mar 2020 11:49:20 +0000 (11:49 +0000)]
[Minor] Add some sanity checks

4 years agoMerge pull request #3288 from HeinleinSupport/master
Vsevolod Stakhov [Thu, 5 Mar 2020 10:08:52 +0000 (10:08 +0000)]
Merge pull request #3288 from HeinleinSupport/master

[Fix] metadata_exporter default formatter

4 years ago[Fix] metadata_exporter default formatter 3288/head
Carsten Rosenberg [Wed, 4 Mar 2020 20:04:10 +0000 (21:04 +0100)]
[Fix] metadata_exporter default formatter

4 years ago[Minor] Fix some issues with lua scripts invocation
Vsevolod Stakhov [Wed, 4 Mar 2020 19:36:11 +0000 (19:36 +0000)]
[Minor] Fix some issues with lua scripts invocation

4 years ago[Feature] Add support for scripts in fuzzy storage
Vsevolod Stakhov [Wed, 4 Mar 2020 16:20:57 +0000 (16:20 +0000)]
[Feature] Add support for scripts in fuzzy storage

4 years ago[Minor] Add helper to alter metatables
Vsevolod Stakhov [Wed, 4 Mar 2020 12:47:45 +0000 (12:47 +0000)]
[Minor] Add helper to alter metatables

4 years agoMerge pull request #3286 from moisseev/webui
Vsevolod Stakhov [Tue, 3 Mar 2020 18:13:26 +0000 (18:13 +0000)]
Merge pull request #3286 from moisseev/webui

[Minor] Remove leftover CSS rule set

4 years ago[Minor] Remove leftover CSS rule set 3286/head
moisseev [Tue, 3 Mar 2020 16:47:15 +0000 (19:47 +0300)]
[Minor] Remove leftover CSS rule set

4 years ago[Minor] Fix some corner case with l tag in DKIM
Vsevolod Stakhov [Tue, 3 Mar 2020 13:19:22 +0000 (13:19 +0000)]
[Minor] Fix some corner case with l tag in DKIM

4 years ago[Fix] Another brain damage html standard adoptions
Vsevolod Stakhov [Mon, 2 Mar 2020 16:52:39 +0000 (16:52 +0000)]
[Fix] Another brain damage html standard adoptions

4 years ago[Fix] Fix parsing of the html tags with no spaces after attributes
Vsevolod Stakhov [Mon, 2 Mar 2020 12:41:11 +0000 (12:41 +0000)]
[Fix] Fix parsing of the html tags with no spaces after attributes

4 years ago[Test] URL compose map
korgoth1 [Sat, 29 Feb 2020 19:17:34 +0000 (22:17 +0300)]
[Test] URL compose map

4 years ago[Test] Fix tests
Vsevolod Stakhov [Sat, 29 Feb 2020 12:33:33 +0000 (12:33 +0000)]
[Test] Fix tests

4 years ago[Fix] Fix tlds extraction if custom composition rules are used
Vsevolod Stakhov [Sat, 29 Feb 2020 12:30:35 +0000 (12:30 +0000)]
[Fix] Fix tlds extraction if custom composition rules are used

4 years agoMerge pull request #3281 from korgoth1/master
Vsevolod Stakhov [Sat, 29 Feb 2020 12:05:15 +0000 (12:05 +0000)]
Merge pull request #3281 from korgoth1/master

[Test] URL compose map

4 years ago[Test] URL compose map 3281/head
korgoth1 [Sat, 29 Feb 2020 11:52:27 +0000 (14:52 +0300)]
[Test] URL compose map

4 years agoMerge remote-tracking branch 'upstream/master'
korgoth1 [Fri, 28 Feb 2020 17:58:17 +0000 (20:58 +0300)]
Merge remote-tracking branch 'upstream/master'

4 years ago[Test] URL compose map
korgoth1 [Fri, 28 Feb 2020 17:52:45 +0000 (20:52 +0300)]
[Test] URL compose map

4 years ago[Minor] Copy&paste error
Vsevolod Stakhov [Fri, 28 Feb 2020 16:43:42 +0000 (16:43 +0000)]
[Minor] Copy&paste error

4 years ago[Minor] Allow to dump symbols and groups using configdump
Vsevolod Stakhov [Fri, 28 Feb 2020 16:25:15 +0000 (16:25 +0000)]
[Minor] Allow to dump symbols and groups using configdump

4 years ago[Minor] Oops, misprint
Vsevolod Stakhov [Thu, 27 Feb 2020 17:18:20 +0000 (17:18 +0000)]
[Minor] Oops, misprint

4 years ago[Minor] Lua_task: Add more consistency to get_from
Vsevolod Stakhov [Thu, 27 Feb 2020 17:14:52 +0000 (17:14 +0000)]
[Minor] Lua_task: Add more consistency to get_from

4 years ago[Fix] Fix logging issue
Vsevolod Stakhov [Thu, 27 Feb 2020 15:36:53 +0000 (15:36 +0000)]
[Fix] Fix logging issue

4 years ago[Fix] Fix opaque maps logic
Vsevolod Stakhov [Thu, 27 Feb 2020 15:33:04 +0000 (15:33 +0000)]
[Fix] Fix opaque maps logic

4 years ago[Minor] Show long compilation warning
Vsevolod Stakhov [Thu, 27 Feb 2020 15:07:56 +0000 (15:07 +0000)]
[Minor] Show long compilation warning