]> source.dussan.org Git - rspamd.git/log
rspamd.git
5 years agoMerge pull request #2630 from citrin/unit-test-fedora-clang
Vsevolod Stakhov [Wed, 14 Nov 2018 12:36:02 +0000 (12:36 +0000)]
Merge pull request #2630 from citrin/unit-test-fedora-clang

Run unit test with clang sanitizers

5 years agoMerge pull request #2632 from apreiml/master
Vsevolod Stakhov [Wed, 14 Nov 2018 12:35:32 +0000 (12:35 +0000)]
Merge pull request #2632 from apreiml/master

fix return code of rspamc

5 years agofix return code of rspamc 2632/head
apreiml [Wed, 14 Nov 2018 11:47:16 +0000 (12:47 +0100)]
fix return code of rspamc

It'll set the return code to EXIT_FAILURE if one of the parties (rspamd side or sub process) or both are failing.

5 years agoDon't print summary line 2630/head
Anton Yuzhaninov [Wed, 14 Nov 2018 03:57:11 +0000 (22:57 -0500)]
Don't print summary line

It is mostly redundant.

5 years agoUse clang sanitizers
Anton Yuzhaninov [Wed, 14 Nov 2018 00:41:52 +0000 (19:41 -0500)]
Use clang sanitizers

5 years agoRun unit tests on Fedora (clang build)
Anton Yuzhaninov [Tue, 13 Nov 2018 21:45:09 +0000 (16:45 -0500)]
Run unit tests on Fedora (clang build)

5 years ago[Test] Add tests for #2584 and #2349
Vsevolod Stakhov [Tue, 13 Nov 2018 18:08:22 +0000 (18:08 +0000)]
[Test] Add tests for #2584 and #2349

5 years ago[Fix] Add obs_fws state support to eoh state machine
Vsevolod Stakhov [Tue, 13 Nov 2018 17:51:55 +0000 (17:51 +0000)]
[Fix] Add obs_fws state support to eoh state machine

Issue: #2584

5 years ago[Fix] Fix override_defaults function
Vsevolod Stakhov [Tue, 13 Nov 2018 16:17:15 +0000 (16:17 +0000)]
[Fix] Fix override_defaults function

5 years ago[Fix] Furhter fixes to ratelimits logic
Vsevolod Stakhov [Tue, 13 Nov 2018 12:02:41 +0000 (12:02 +0000)]
[Fix] Furhter fixes to ratelimits logic

5 years ago[Fix] Really fix ratelimits configuration and work
Vsevolod Stakhov [Tue, 13 Nov 2018 11:51:14 +0000 (11:51 +0000)]
[Fix] Really fix ratelimits configuration and work

5 years ago[Minor] Add function to parse humanized number
Vsevolod Stakhov [Tue, 13 Nov 2018 11:44:44 +0000 (11:44 +0000)]
[Minor] Add function to parse humanized number

5 years ago[Fix] Do not allow syntax errors in include files...
Vsevolod Stakhov [Mon, 12 Nov 2018 16:37:25 +0000 (16:37 +0000)]
[Fix] Do not allow syntax errors in include files...

5 years ago[Fix] Do not allow to merge an object with an array (or vice versa)
Vsevolod Stakhov [Mon, 12 Nov 2018 16:36:57 +0000 (16:36 +0000)]
[Fix] Do not allow to merge an object with an array (or vice versa)

Issue: #2613

5 years ago[Fix] Fix explicit methods call in selectors
Vsevolod Stakhov [Mon, 12 Nov 2018 15:59:45 +0000 (15:59 +0000)]
[Fix] Fix explicit methods call in selectors

Issue: #2621
Closes: #2621
5 years ago[Minor] Make LEAKED_PASSWORD_SCAM rule more strict
Vsevolod Stakhov [Mon, 12 Nov 2018 14:32:52 +0000 (14:32 +0000)]
[Minor] Make LEAKED_PASSWORD_SCAM rule more strict

5 years ago[Minor] Remove wrong assertion (task_timeout)
Vsevolod Stakhov [Mon, 12 Nov 2018 14:26:57 +0000 (14:26 +0000)]
[Minor] Remove wrong assertion (task_timeout)

5 years ago[Fix] Fix extraction of additional parts
Vsevolod Stakhov [Mon, 12 Nov 2018 13:45:17 +0000 (13:45 +0000)]
[Fix] Fix extraction of additional parts

5 years ago[Fix] Ignore signatures when looking for boundaries
Vsevolod Stakhov [Mon, 12 Nov 2018 13:45:04 +0000 (13:45 +0000)]
[Fix] Ignore signatures when looking for boundaries

5 years ago[Fix] Add sanity check when applying mime boundaries heuristic
Vsevolod Stakhov [Mon, 12 Nov 2018 13:14:30 +0000 (13:14 +0000)]
[Fix] Add sanity check when applying mime boundaries heuristic

5 years ago[Fix] Fix actrie implementation (sync from upstream), fixed OOB read
Vsevolod Stakhov [Mon, 12 Nov 2018 12:57:24 +0000 (12:57 +0000)]
[Fix] Fix actrie implementation (sync from upstream), fixed OOB read

5 years ago[Test] Fix broken tests
Vsevolod Stakhov [Mon, 12 Nov 2018 11:48:07 +0000 (11:48 +0000)]
[Test] Fix broken tests

5 years ago[Minor] Set proper exit code on errors in rspamc
Vsevolod Stakhov [Mon, 12 Nov 2018 11:30:42 +0000 (11:30 +0000)]
[Minor] Set proper exit code on errors in rspamc

Issue: #2627
Closes: #2627
5 years ago[Minor] Increase of LEAKED_PASSWORD_SCAM score
Vsevolod Stakhov [Mon, 12 Nov 2018 11:18:30 +0000 (11:18 +0000)]
[Minor] Increase of LEAKED_PASSWORD_SCAM score

5 years agoMerge pull request #2628 from HeinleinSupport/master
Vsevolod Stakhov [Mon, 12 Nov 2018 11:23:47 +0000 (11:23 +0000)]
Merge pull request #2628 from HeinleinSupport/master

[Minor] Clickhouse - adjust .conf to follow db scheme v2

5 years ago[Rules] Reduce FP rate for LEAKE_PASSWORD_SCAM rule
Vsevolod Stakhov [Mon, 12 Nov 2018 11:16:58 +0000 (11:16 +0000)]
[Rules] Reduce FP rate for LEAKE_PASSWORD_SCAM rule

5 years ago[Feature] Add support of words regexps
Vsevolod Stakhov [Mon, 12 Nov 2018 11:16:45 +0000 (11:16 +0000)]
[Feature] Add support of words regexps

5 years ago[Minor] Clickhouse - adjust .conf to follow db scheme v2 2628/head
Carsten Rosenberg [Mon, 12 Nov 2018 08:56:51 +0000 (09:56 +0100)]
[Minor] Clickhouse - adjust .conf to follow db scheme v2

5 years ago[Minor] Allow to write rspamd_text directly to fd
Vsevolod Stakhov [Sun, 11 Nov 2018 17:57:44 +0000 (17:57 +0000)]
[Minor] Allow to write rspamd_text directly to fd

5 years ago[Minor] Don't use O_EXCL flag when creating files from Lua
Vsevolod Stakhov [Sun, 11 Nov 2018 17:57:26 +0000 (17:57 +0000)]
[Minor] Don't use O_EXCL flag when creating files from Lua

5 years ago[Minor] Oops, fix issues
Vsevolod Stakhov [Sun, 11 Nov 2018 17:28:05 +0000 (17:28 +0000)]
[Minor] Oops, fix issues

5 years ago[Minor] Allow to create rspamd_text from lua
Vsevolod Stakhov [Sun, 11 Nov 2018 17:23:08 +0000 (17:23 +0000)]
[Minor] Allow to create rspamd_text from lua

5 years ago[Minor] Don't learn classifiers where expansion fails
Vsevolod Stakhov [Sat, 10 Nov 2018 17:15:44 +0000 (17:15 +0000)]
[Minor] Don't learn classifiers where expansion fails

5 years ago[Feature] Support query arguments in controller's custom commands
Vsevolod Stakhov [Fri, 9 Nov 2018 08:31:46 +0000 (08:31 +0000)]
[Feature] Support query arguments in controller's custom commands

5 years ago[Minor] Add routine to convert an ftok_t to a C string
Vsevolod Stakhov [Fri, 9 Nov 2018 08:31:26 +0000 (08:31 +0000)]
[Minor] Add routine to convert an ftok_t to a C string

5 years ago[Minor] Various fixes in lua_fuzzy library
Vsevolod Stakhov [Thu, 8 Nov 2018 10:54:26 +0000 (10:54 +0000)]
[Minor] Various fixes in lua_fuzzy library

5 years ago[Minor] Fix fuzzystat command
Vsevolod Stakhov [Thu, 8 Nov 2018 10:03:00 +0000 (10:03 +0000)]
[Minor] Fix fuzzystat command

5 years ago[Minor] Fix arguments passing to rspamadm scripts
Vsevolod Stakhov [Thu, 8 Nov 2018 10:02:45 +0000 (10:02 +0000)]
[Minor] Fix arguments passing to rspamadm scripts

5 years ago[Minor] Move subject tokenisation to a separate routine
Vsevolod Stakhov [Thu, 8 Nov 2018 09:41:19 +0000 (09:41 +0000)]
[Minor] Move subject tokenisation to a separate routine

Issue: #2623

5 years ago[Minor] This step is not done yet, apply another approach
Vsevolod Stakhov [Thu, 8 Nov 2018 09:40:08 +0000 (09:40 +0000)]
[Minor] This step is not done yet, apply another approach

Issue: #2623

5 years ago[Minor] Add workaround for Thai characters on CentOS 6
Vsevolod Stakhov [Thu, 8 Nov 2018 08:25:04 +0000 (08:25 +0000)]
[Minor] Add workaround for Thai characters on CentOS 6

5 years agoMerge pull request #2624 from HeinleinSupport/master
Vsevolod Stakhov [Wed, 7 Nov 2018 19:34:16 +0000 (19:34 +0000)]
Merge pull request #2624 from HeinleinSupport/master

Improve debug log in reputation module

5 years ago[Minor] Reputation Plugin - Debug Logging #2 2624/head
Carsten Rosenberg [Wed, 7 Nov 2018 13:59:48 +0000 (14:59 +0100)]
[Minor] Reputation Plugin - Debug Logging #2

5 years ago[Minor] Reputation Plugin - Debug Logging
Carsten Rosenberg [Wed, 7 Nov 2018 05:57:43 +0000 (06:57 +0100)]
[Minor] Reputation Plugin - Debug Logging

5 years ago[Minor] Improve logic of parts selection and fix some corner cases
Vsevolod Stakhov [Tue, 6 Nov 2018 17:48:01 +0000 (17:48 +0000)]
[Minor] Improve logic of parts selection and fix some corner cases

5 years ago[Minor] Fix various issues with lua_fuzzy
Vsevolod Stakhov [Tue, 6 Nov 2018 16:18:54 +0000 (16:18 +0000)]
[Minor] Fix various issues with lua_fuzzy

5 years ago[Rework] Use lua_fuzzy in fuzzy check module
Vsevolod Stakhov [Tue, 6 Nov 2018 14:31:10 +0000 (14:31 +0000)]
[Rework] Use lua_fuzzy in fuzzy check module

5 years ago[Minor] Fix tableshape usage, add cleanup rules method
Vsevolod Stakhov [Tue, 6 Nov 2018 14:28:51 +0000 (14:28 +0000)]
[Minor] Fix tableshape usage, add cleanup rules method

5 years ago[Minor] Add some logic to use mime_types tracking in fuzzy checks
Vsevolod Stakhov [Tue, 6 Nov 2018 12:07:49 +0000 (12:07 +0000)]
[Minor] Add some logic to use mime_types tracking in fuzzy checks

5 years ago[Minor] Do not bother about parts with no filename
Vsevolod Stakhov [Mon, 5 Nov 2018 18:12:49 +0000 (18:12 +0000)]
[Minor] Do not bother about parts with no filename

5 years ago[Minor] Add mime traces
Vsevolod Stakhov [Mon, 5 Nov 2018 18:11:56 +0000 (18:11 +0000)]
[Minor] Add mime traces

5 years ago[Minor] Add ID to mime parts
Vsevolod Stakhov [Mon, 5 Nov 2018 17:58:27 +0000 (17:58 +0000)]
[Minor] Add ID to mime parts

5 years ago[Minor] Store part data when making request to fuzzy
Vsevolod Stakhov [Mon, 5 Nov 2018 17:36:42 +0000 (17:36 +0000)]
[Minor] Store part data when making request to fuzzy

5 years ago[Minor] Add dependency on mime types
Vsevolod Stakhov [Mon, 5 Nov 2018 14:32:51 +0000 (14:32 +0000)]
[Minor] Add dependency on mime types

5 years ago[Project] Add logic to check content type
Vsevolod Stakhov [Mon, 5 Nov 2018 14:30:51 +0000 (14:30 +0000)]
[Project] Add logic to check content type

5 years ago[Feature] Ignore cookies in the future and too old in the past
Vsevolod Stakhov [Sun, 4 Nov 2018 11:00:12 +0000 (11:00 +0000)]
[Feature] Ignore cookies in the future and too old in the past

5 years ago[Minor] Allow to print timestamp
Vsevolod Stakhov [Sun, 4 Nov 2018 10:52:49 +0000 (10:52 +0000)]
[Minor] Allow to print timestamp

5 years ago[Minor] Fix timestamp filling
Vsevolod Stakhov [Sun, 4 Nov 2018 10:52:35 +0000 (10:52 +0000)]
[Minor] Fix timestamp filling

5 years ago[Minor] Return cookie timestamp when decrypting
Vsevolod Stakhov [Sun, 4 Nov 2018 10:47:35 +0000 (10:47 +0000)]
[Minor] Return cookie timestamp when decrypting

5 years ago[Feature] Add `rspamadm cookie` utility
Vsevolod Stakhov [Sun, 4 Nov 2018 10:36:23 +0000 (10:36 +0000)]
[Feature] Add `rspamadm cookie` utility

5 years ago[Feature] Add support of cookies in replies module
Vsevolod Stakhov [Sun, 4 Nov 2018 10:01:41 +0000 (10:01 +0000)]
[Feature] Add support of cookies in replies module

5 years ago[Minor] Rework nonce structure for cookies
Vsevolod Stakhov [Sun, 4 Nov 2018 10:00:52 +0000 (10:00 +0000)]
[Minor] Rework nonce structure for cookies

5 years ago[Feature] Allow to create lua regexps from glob or plain patterns
Vsevolod Stakhov [Sat, 3 Nov 2018 13:05:19 +0000 (13:05 +0000)]
[Feature] Allow to create lua regexps from glob or plain patterns

5 years ago[Fix] Fix urls insertion in Clickhouse module
Vsevolod Stakhov [Fri, 2 Nov 2018 19:09:43 +0000 (19:09 +0000)]
[Fix] Fix urls insertion in Clickhouse module

5 years ago[Project] Add images check logic
Vsevolod Stakhov [Fri, 2 Nov 2018 15:00:30 +0000 (15:00 +0000)]
[Project] Add images check logic

5 years ago[Project] Add logic for checking of the text parts
Vsevolod Stakhov [Fri, 2 Nov 2018 09:53:52 +0000 (09:53 +0000)]
[Project] Add logic for checking of the text parts

5 years ago[Minor] Disable useless noisy warning
Vsevolod Stakhov [Fri, 2 Nov 2018 09:39:29 +0000 (09:39 +0000)]
[Minor] Disable useless noisy warning

5 years ago[Project] Initial addition of lua helpers for fuzzy
Vsevolod Stakhov [Thu, 1 Nov 2018 17:20:23 +0000 (17:20 +0000)]
[Project] Initial addition of lua helpers for fuzzy

5 years ago[Minor] Remove unused macros
Vsevolod Stakhov [Thu, 1 Nov 2018 17:16:08 +0000 (17:16 +0000)]
[Minor] Remove unused macros

5 years ago[Minor] Remove redundant refcount increase
Vsevolod Stakhov [Thu, 1 Nov 2018 12:18:09 +0000 (12:18 +0000)]
[Minor] Remove redundant refcount increase

5 years ago[Fix] Restore URLs exporting in ClickHouse plugin
Vsevolod Stakhov [Wed, 31 Oct 2018 22:36:29 +0000 (22:36 +0000)]
[Fix] Restore URLs exporting in ClickHouse plugin

5 years ago[Minor] Ignore skipped tasks
Vsevolod Stakhov [Wed, 31 Oct 2018 21:35:27 +0000 (21:35 +0000)]
[Minor] Ignore skipped tasks

TODO: write a generic framework for that stuff

5 years ago[Minor] Fix symbol usage in reputation plugin
Vsevolod Stakhov [Wed, 31 Oct 2018 10:08:28 +0000 (10:08 +0000)]
[Minor] Fix symbol usage in reputation plugin

5 years agoMerge pull request #2618 from moisseev/ci
Vsevolod Stakhov [Tue, 30 Oct 2018 21:12:21 +0000 (21:12 +0000)]
Merge pull request #2618 from moisseev/ci

[Test] Add test for composites with symbol groups

5 years agoMerge pull request #2619 from citrin/fedora-clang
Vsevolod Stakhov [Tue, 30 Oct 2018 21:12:01 +0000 (21:12 +0000)]
Merge pull request #2619 from citrin/fedora-clang

Test build with clang

5 years ago[Test] Add test for composites with symbol groups 2618/head
Alexander Moisseev [Tue, 30 Oct 2018 18:56:22 +0000 (21:56 +0300)]
[Test] Add test for composites with symbol groups

5 years agoTurn off TORCH for clang build 2619/head
Anton Yuzhaninov [Tue, 30 Oct 2018 19:38:12 +0000 (15:38 -0400)]
Turn off TORCH for clang build

It turned out that clang significantly slower than gcc on rspamd code
(at least with -O0). Switch off torch to decrease build time.

5 years agoRemove unused function
Anton Yuzhaninov [Tue, 30 Oct 2018 19:12:18 +0000 (15:12 -0400)]
Remove unused function

gboolean support was removed in commit 91287bb8407e3b9022bc663b07870510aedabbc3.

5 years agoEnable clang plugin
Anton Yuzhaninov [Tue, 30 Oct 2018 18:51:12 +0000 (14:51 -0400)]
Enable clang plugin

Build clang plugin and use it to check rspamd printf-like functions
(rspamd_printf, rspamd_fprintf, rspamd_default_log_function, e.t.c).

5 years agoDon't use LLVM_CXX_FLAGS/LLVM_C_FLAGS
Anton Yuzhaninov [Tue, 30 Oct 2018 18:45:51 +0000 (14:45 -0400)]
Don't use LLVM_CXX_FLAGS/LLVM_C_FLAGS

llvm-config --cxxflags shows CFLAGS used to compile clang. If clang
installed from package and package was build using GCC then it will
contain GCC specific flags. In case of clang installed as RPM packge
-specs= flags also added. There is not point to use them to
compile plugin. For now hardcode flags in clang-plugin/CMakeLists.txt

Add -O2 - we want plugin to work fast even if we to compiling rspamd
code with -O0.

5 years ago[Minor] Fix expiry config overriding
Vsevolod Stakhov [Tue, 30 Oct 2018 16:23:21 +0000 (16:23 +0000)]
[Minor] Fix expiry config overriding

5 years agoMerge pull request #2617 from moisseev/ci
Vsevolod Stakhov [Tue, 30 Oct 2018 16:23:02 +0000 (16:23 +0000)]
Merge pull request #2617 from moisseev/ci

[Test] Add composites test

5 years ago[Test] Add composites test 2617/head
Alexander Moisseev [Tue, 30 Oct 2018 06:51:32 +0000 (09:51 +0300)]
[Test] Add composites test

5 years ago[Minor] Do not parse raw regexp for explicitly utf expressions
Vsevolod Stakhov [Tue, 30 Oct 2018 15:26:49 +0000 (15:26 +0000)]
[Minor] Do not parse raw regexp for explicitly utf expressions

5 years agoMerge pull request #2614 from citrin/remove-libnsl-dependency
Vsevolod Stakhov [Tue, 30 Oct 2018 15:17:22 +0000 (15:17 +0000)]
Merge pull request #2614 from citrin/remove-libnsl-dependency

Stop linking with -lnsl on Linux

5 years ago[Feature] Detect orphaned parts and attach them to message
Vsevolod Stakhov [Tue, 30 Oct 2018 14:49:09 +0000 (14:49 +0000)]
[Feature] Detect orphaned parts and attach them to message

5 years agoDon't set PREFIX variable in cmake
Anton Yuzhaninov [Tue, 30 Oct 2018 03:33:36 +0000 (23:33 -0400)]
Don't set PREFIX variable in cmake

As I can see this variable is not used by rspamd build system. Remove it
because setting it causes a lot of warning with
-DENABLE_CLANG_PLUGIN=ON - PREFIX variable is not documented but used by
cmake internally.

5 years agobuild with -O0
Anton Yuzhaninov [Tue, 30 Oct 2018 01:24:16 +0000 (21:24 -0400)]
build with -O0

Compilation with -O2/-O3 is slow.

5 years agoBuild with clang
Anton Yuzhaninov [Tue, 30 Oct 2018 00:51:31 +0000 (20:51 -0400)]
Build with clang

5 years agoStop linking with -lnsl on Linux 2614/head
Anton Yuzhaninov [Mon, 29 Oct 2018 22:45:11 +0000 (18:45 -0400)]
Stop linking with -lnsl on Linux

As far as I know on Linux libnsl is used only for NIS/NIS+ support.
It is highly unlikey that Rspamd users use NIS in 2018.

Keep linking with libnsl on Solaris - there it is likely needed even if
NIS is not used.

5 years ago[Minor] Ops, fix symbol name
Vsevolod Stakhov [Mon, 29 Oct 2018 17:49:46 +0000 (17:49 +0000)]
[Minor] Ops, fix symbol name

5 years ago[Conf] Add DWL support in the default configuration
Vsevolod Stakhov [Mon, 29 Oct 2018 17:41:17 +0000 (17:41 +0000)]
[Conf] Add DWL support in the default configuration

5 years ago[Fix] Fix DKIM based RBLs
Vsevolod Stakhov [Mon, 29 Oct 2018 17:35:18 +0000 (17:35 +0000)]
[Fix] Fix DKIM based RBLs

5 years ago[Rules] Add LEAKED_PASSWORD_SCAM rule
Vsevolod Stakhov [Mon, 29 Oct 2018 16:51:39 +0000 (16:51 +0000)]
[Rules] Add LEAKED_PASSWORD_SCAM rule

5 years ago[Rework] Change time handling
Vsevolod Stakhov [Mon, 29 Oct 2018 13:19:14 +0000 (13:19 +0000)]
[Rework] Change time handling

5 years ago[Minor] Fix deps
Vsevolod Stakhov [Mon, 29 Oct 2018 13:04:48 +0000 (13:04 +0000)]
[Minor] Fix deps

5 years ago[Project] Rework dynamic parts of symcache items
Vsevolod Stakhov [Mon, 29 Oct 2018 12:58:58 +0000 (12:58 +0000)]
[Project] Rework dynamic parts of symcache items

5 years ago[Project] Another rework for symbols cache
Vsevolod Stakhov [Mon, 29 Oct 2018 12:22:46 +0000 (12:22 +0000)]
[Project] Another rework for symbols cache

5 years ago[Minor] g_abort requires quite a recent glib
Vsevolod Stakhov [Mon, 29 Oct 2018 10:04:39 +0000 (10:04 +0000)]
[Minor] g_abort requires quite a recent glib

5 years ago[Minor] Fix dependencies resolution
Vsevolod Stakhov [Sun, 28 Oct 2018 11:38:54 +0000 (11:38 +0000)]
[Minor] Fix dependencies resolution